From fa97f9ae68a757436a4ad050cb0421b95c136e02 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 22 Feb 2023 15:08:07 -0600 Subject: [PATCH] Fix test gating Signed-off-by: Michel Alexandre Salim --- rust-sysinfo.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-sysinfo.spec b/rust-sysinfo.spec index 6cb8917..3a05bca 100644 --- a/rust-sysinfo.spec +++ b/rust-sysinfo.spec @@ -127,6 +127,7 @@ use the "serde" feature of the "%{crate}" crate. %install %cargo_install +%if %{with check} %check # skip tests that fail when run on vms, on tmpfs, or in systemd-nspawn %if 0%{?fedora} >= 38 @@ -135,7 +136,6 @@ SKIP_TESTS="" SKIP_TESTS=" --skip test::check_all_process_uids_resolvable --skip test_disks" %endif -%if %{with check} %ifarch s390x # these tests panic with assertion failures on s390x SKIP_TESTS+=" --skip test::check_cpus_number --skip test::check_processes_cpu_usage"