-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/tests: add a test for config.users.mutableUsers. #31569
Conversation
As mentioned in #31034, I think this PR is useful on its own. Waiting for review |
nixos/tests/mutable-users.nix
Outdated
|
||
# Machine starts in immutable mode. Add a user and test if reactivating | ||
# configuration removes the user. | ||
$machine->fail("cat /etc/passwd | grep foobar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to make that grep ^foobar:
instead
Added a comment on the code. Otherwise, LGTM. Given that this isn't part of |
It's in preparation to add an assertion for NixOS#4990.
afc35b7
to
1dd0379
Compare
LGTM. Deferring to @fpletz. |
@GrahamcOfBorg @grahamc I've ran |
Thanks! |
When seeing why the tests fail, make sure to be rebased on a recent master. That is how the tests are run, and sometimes this is caused by breakage already on master. |
It's in preparation to add an assertion for #4990.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)