summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-10-28 10:30:02 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-10-28 11:05:35 +1100
commitf380194f3dac82e63dc72db160490dcb58208534 (patch)
tree80524f0d904ac3c3152fe1efb5cb4044a3d293f1 /tests
parentc908607e8a8ac1aaa0db60955800be4b02e500cc (diff)
users: create users with home directory `/var/empty` by default
Diffstat (limited to 'tests')
-rw-r--r--tests/users-groups.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/users-groups.nix b/tests/users-groups.nix
index 34ee5c2..8126105 100644
--- a/tests/users-groups.nix
+++ b/tests/users-groups.nix
@@ -51,7 +51,7 @@
grep "sysadminctl -addUser ${lib.escapeShellArgs [ "foo" "-UID" 42000 "-GID" 42000 "-fullName" "Foo user" "-home" "/Users/foo" "-shell" "/run/current-system/sw/bin/bash" ]}" ${config.out}/activate
grep "createhomedir -cu ${lib.escapeShellArg "foo"}" ${config.out}/activate
grep "sysadminctl -addUser ${lib.escapeShellArgs [ "created.user" "-UID" 42001 ]} .* ${lib.escapeShellArgs [ "-shell" "/usr/bin/false" ] }" ${config.out}/activate
- (! grep "sysadminctl -addUser ${lib.escapeShellArg "created.user"} .* -home" ${config.out}/activate)
+ grep "sysadminctl -addUser ${lib.escapeShellArg "created.user"} .* ${lib.escapeShellArgs [ "-home" "/var/empty" ]}" ${config.out}/activate
(! grep "dscl . -delete ${lib.escapeShellArg "/Users/created.user"}" ${config.out}/activate)
(! grep "dscl . -delete ${lib.escapeShellArg "/Groups/created.user"}" ${config.out}/activate)