Commit 45f26104 authored by Will Fancher's avatar Will Fancher
Browse files

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.
parent 7fd36ee8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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"):