diff --git a/tests/login.nix b/tests/login.nix index 78b54760849a..c4524612295b 100644 --- a/tests/login.nix +++ b/tests/login.nix @@ -7,7 +7,7 @@ testScript = '' $machine->mustSucceed("useradd -m alice"); - $machine->mustSucceed("echo foobar | passwd --stdin alice"); + $machine->mustSucceed("(echo foobar; echo foobar) | passwd alice"); # Log in as alice on a virtual console. $machine->waitForJob("tty1");