From 45f261041539785076258319a62216737f6c44e6 Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sun, 27 Jul 2025 14:17:09 -0400 Subject: [PATCH] nixos/lemurs: Fix test > machine.wait_until_succeeds("pgrep -f 'lemurs.*tty1'") This was guaranteed to succeed whether the desired process existed or not, because it was matching the 'bach -c ...' command the test driver uses to run the command. Let's wait for evidence on screen instead. --- nixos/tests/lemurs/lemurs.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/lemurs/lemurs.nix b/nixos/tests/lemurs/lemurs.nix index 803f74bfc681..e1b4ef40f983 100644 --- a/nixos/tests/lemurs/lemurs.nix +++ b/nixos/tests/lemurs/lemurs.nix @@ -11,6 +11,8 @@ ]; }; + enableOCR = true; + nodes.machine = _: { imports = [ ../common/user-account.nix ]; services.displayManager.lemurs.enable = true; @@ -20,7 +22,7 @@ machine.start() machine.wait_for_unit("multi-user.target") - machine.wait_until_succeeds("pgrep -f 'lemurs.*tty1'") + machine.wait_for_text("Login") machine.screenshot("postboot") with subtest("Log in as alice on a virtual console"):