sudo-rs
sudo-rs copied to clipboard
test failure during Fedora build of 0.2.9: common::context::tests::test_build_run_context
trafficstars
I'm working on updating sudo-rs Fedora package to the latest version, and I encountered one new test failure in 0.2.9 (compared to 0.2.6) - from the build log:
failures:
---- common::context::tests::test_build_run_context stdout ----
thread 'common::context::tests::test_build_run_context' panicked at src/system/audit.rs:73:14:
could not restore to saved user id: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
common::context::tests::test_build_run_context
We run cargo tests in a way that is pretty standard (which should be equivalent to cargo test --release --features pam-login).
I looked at the GitHub Actions CI pipeline defined in this project, and I see that it's just running cargo test --release too, so I'm not sure why this would fail in our build environment but pass in CI - or if it's because the tests cannot elevate privileges with "sudo" in our build environment like they seem to be able to in CI?