diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-05-21 19:51:47 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-05-21 19:55:21 +0200 |
commit | 77d7aa6742a25f11cad469805ec948c39a194707 (patch) | |
tree | 9086e07b39aefa68ccd8a7db1ee8b823afad5d39 /nixos/tests | |
parent | 8bd025a75e295609647af0510544efb857678ec8 (diff) | |
download | nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar.gz nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar.bz2 nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar.lz nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar.xz nixlib-77d7aa6742a25f11cad469805ec948c39a194707.tar.zst nixlib-77d7aa6742a25f11cad469805ec948c39a194707.zip |
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>
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/installer.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index a67068dc30a5..f491b0460330 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -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"); ''; }; |