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:
Tuomas Tynkkynen 2015-08-15 17:12:07 +03:00
parent 7cd6b3cf76
commit f7771131b6

View file

@ -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");
'';
})