Ignoring an error during %{cargo_test} (or: how to get youki tests to not error out because of missing dbus)?
Hi all, I stumbled upon youki today and thought I'' sharpen my rust packaging skills. Voilá!
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_Vir...
However, the package only builds fine because I disabled the %checks due to three errors (details see below). Is there a way to ignore some checks when running %{cargo_test}? Maybe like "%pytest -k (not some-test)" or similar? Or does anyone know how to fix the error below, that seems to be from a missing/failing/broken dbus connection inside the build vm? Have a nice weekend, everyone! Kind Regards, Johannes P.S.: Here are the errors:
[ 830s] [ 830s] failures: [ 830s] [ 830s] ---- systemd::dbus_native::dbus::tests::test_dbus_function_calls stdout ---- [ 830s] Error: DBus(ConnectionError("ENOENT: No such file or directory")) [ 830s] [ 830s] ---- systemd::dbus_native::dbus::tests::test_dbus_connection_auth stdout ---- [ 830s] thread 'systemd::dbus_native::dbus::tests::test_dbus_connection_auth' panicked at crates/libcgroups/src/systemd/dbus_native/dbus.rs:475:9: [ 830s] assertion failed: conn.is_ok() [ 830s] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [ 830s] [ 830s] ---- systemd::dbus_native::dbus::tests::test_dbus_function_calls_errors stdout ---- [ 830s] thread 'systemd::dbus_native::dbus::tests::test_dbus_function_calls_errors' panicked at crates/libcgroups/src/systemd/dbus_native/dbus.rs:528:69: [ 830s] called `Result::unwrap()` on an `Err` value: DBus(ConnectionError("ENOENT: No such file or directory")) [ 830s] [ 830s] [ 830s] failures: [ 830s] systemd::dbus_native::dbus::tests::test_dbus_connection_auth [ 830s] systemd::dbus_native::dbus::tests::test_dbus_function_calls [ 830s] systemd::dbus_native::dbus::tests::test_dbus_function_calls_errors [ 830s] [ 830s] test result: FAILED. 134 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.55s
participants (1)
-
Johannes Kastl