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.
This commit is contained in:
parent
7fd36ee82c
commit
45f2610415
@ -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"):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user