mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
nixos/tests/lightdm: Fix waiting for the login to succeed
Currently the lightdm test detects a successful login by OCR'ing the
screen and searching for the clock widget's text. Since the last
IceWM update (commit bdd20ced
), either the font or the colors of the
clock changed such that the OCR doesn't pick it up anymore.
Instead, just look for a matching (root) window title, e.g.
"IceWM 1.3.9 (Linux/i686)"
This commit is contained in:
parent
7cd6b3cf76
commit
f7771131b6
|
@ -22,7 +22,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
$machine->waitForText(qr/${user.description}/);
|
||||
$machine->screenshot("lightdm");
|
||||
$machine->sendChars("${user.password}\n");
|
||||
$machine->waitForText(qr/^\d{2}(?::\d{2}){2} (?:AM|PM)$/m);
|
||||
$machine->waitForWindow("^IceWM ");
|
||||
$machine->screenshot("session");
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue