3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/luksroot: Switch to use waitForText.

Fixes the "blindly hope that 60 seconds is enough" issue from 1f34503,
so that we now have a (hopefully) reliable way to wait for the
passphrase prompt.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-05-21 19:51:47 +02:00
parent 8bd025a75e
commit 77d7aa6742
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -366,7 +366,7 @@ in {
'';
preBootCommands = ''
$machine->start;
sleep 60; # XXX: Hopefully this is long enough :-/
$machine->waitForText(qr/Enter passphrase/);
$machine->sendChars("supersecret\n");
'';
};