Give up and disable tests

Too many tests don't work when virtualized / containerized. Keeping the
list of ignored tests up-to-date is apparently a fool's errand, with
different tests failing on different architectures, and systemd, glibc, and
kernel updates frequently causing new interesting ways in which tests fail
in containerized / virtualized (mock / koji) environments.
epel9 imports/e9/rust-nix0.24-0.24.3-7.el9
Fabio Valentini 2 years ago
parent 50cd5a0f48
commit 7f2591b4fd
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,5 +1,6 @@
# Generated by rust2rpm 24
%bcond_without check
# * many tests don't work when virtualized / containerized
%bcond_with check
%global debug_package %{nil}
%global crate nix
@ -460,8 +461,7 @@ use the "zerocopy" feature of the "%{crate}" crate.
%if %{with check}
%check
# * skip tests that don't work in mock environments
%cargo_test -- -- --skip sys::resource::test::test_self_cpu_time --skip sys::test_ioctl::linux_ioctls::test_ioctl_write_int --skip test_fcntl::linux_android::test_copy_file_range --skip sys::test_socket::test_af_alg_cipher --skip sys::test_socket::test_timestamping --skip sys::socket::sendmsg
%cargo_test
%endif
%changelog

Loading…
Cancel
Save