Properly exclude failing tests

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent 0906398375
commit d70ea15f06
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -117,14 +117,23 @@ use the "rayon" feature of the "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
# skip tests that fail when run on vms, on tmpfs, or in systemd-nspawn
%if 0%{?fedora} >= 38
SKIP_TESTS=""
%else
SKIP_TESTS=" --skip test_disks"
%endif
%ifarch s390x %ifarch s390x
# these tests panic with assertion failures on s390x # these tests panic with assertion failures on s390x
%cargo_test -- -- \ SKIP_TESTS+=" --skip test::check_cpus_number --skip test::check_processes_cpu_usage"
--skip test::check_cpus_number \
--skip test::check_processes_cpu_usage
%else
%cargo_test
%endif %endif
if [ -e ${SKIP_TESTS} ]; then
%cargo_test
else
%cargo_test -- -- ${SKIP_TESTS}
fi
%endif %endif
%changelog %changelog

Loading…
Cancel
Save