nixos/tests/login{,-nosuid}: assert yescrypt password format

This commit is contained in:
Grimmauld
2026-07-13 20:29:06 +02:00
parent 3d32e0705a
commit 56f89898da
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@
with subtest("create user"):
machine.succeed("useradd -m alice")
machine.succeed("(echo foobar; echo foobar) | passwd alice")
machine.succeed("grep -F 'alice:$y$' /etc/shadow")
with subtest("Check whether switching VTs works"):
machine.fail("pgrep -f 'agetty.*tty2'")
+1
View File
@@ -28,6 +28,7 @@
with subtest("create user"):
machine.succeed("useradd -m alice")
machine.succeed("(echo foobar; echo foobar) | passwd alice")
machine.succeed("grep -F 'alice:$y$' /etc/shadow")
with subtest("Check whether switching VTs works"):
machine.fail("pgrep -f 'agetty.*tty2'")