diff --git a/tests/cli.nix b/tests/cli.nix index 0c2bf29d..31905bfb 100644 --- a/tests/cli.nix +++ b/tests/cli.nix @@ -19,7 +19,7 @@ makeDiskoTest { ''; enableOCR = true; bootCommands = '' - machine.wait_for_text("Passphrase for") + machine.wait_for_text("[Pp]assphrase for") machine.send_chars("secretsecret\n") ''; extraConfig = { diff --git a/tests/complex.nix b/tests/complex.nix index 6209338d..5c8cd0ce 100644 --- a/tests/complex.nix +++ b/tests/complex.nix @@ -18,7 +18,7 @@ makeDiskoTest { ''; enableOCR = true; bootCommands = '' - machine.wait_for_text("Passphrase for") + machine.wait_for_text("[Pp]assphrase for") machine.send_chars("secretsecret\n") ''; extraConfig = { diff --git a/tests/luks-lvm.nix b/tests/luks-lvm.nix index 4f35e5dc..473e15c4 100644 --- a/tests/luks-lvm.nix +++ b/tests/luks-lvm.nix @@ -9,7 +9,7 @@ makeDiskoTest { ''; enableOCR = true; bootCommands = '' - machine.wait_for_text("Passphrase for") + machine.wait_for_text("[Pp]assphrase for") machine.send_chars("secretsecret\n") ''; } diff --git a/tests/module.nix b/tests/module.nix index 2a6342f3..b8f8a36b 100644 --- a/tests/module.nix +++ b/tests/module.nix @@ -19,7 +19,7 @@ makeDiskoTest { ''; enableOCR = true; bootCommands = '' - machine.wait_for_text("Passphrase for") + machine.wait_for_text("[Pp]assphrase for") machine.send_chars("secretsecret\n") ''; extraConfig = { diff --git a/tests/zfs.nix b/tests/zfs.nix index ce60789a..b8270904 100644 --- a/tests/zfs.nix +++ b/tests/zfs.nix @@ -12,7 +12,7 @@ makeDiskoTest { ''; enableOCR = true; bootCommands = '' - machine.wait_for_text("passphrase for") + machine.wait_for_text("(?:passphrase|key) for") machine.send_chars("secretsecret\n") ''; extraTestScript = ''