We've been marking tests that need sudo (root privileges) with ignore, so that we can run the tests in CI.
I noticed the Nix crate had some helpful macros, circumventing the need to use ignore. They aren't part of their public api, so I created a test-helpers crate for us and copied the 2 macros we needed to skip when root isn't available.
We've been marking tests that need sudo (root privileges) with ignore, so that we can run the tests in CI.
I noticed the Nix crate had some helpful macros, circumventing the need to use ignore. They aren't part of their public api, so I created a
test-helpers
crate for us and copied the 2 macros we needed to skip when root isn't available.