From 77d7aa6742a25f11cad469805ec948c39a194707 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 21 May 2015 19:51:47 +0200 Subject: [PATCH] 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 --- nixos/tests/installer.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index a67068dc30a..f491b046033 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"); ''; };