diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2015-08-15 17:12:07 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2015-08-15 17:12:07 +0300 |
commit | f7771131b6ff0eaa2bfb5ed969a98cd7cc78220b (patch) | |
tree | 8bcde0a71a93ab428dc3bd026bd0d6b6e0d8ae61 /nixos/tests/lightdm.nix | |
parent | 7cd6b3cf7666455319769ff7c863ab8a08a1720e (diff) |
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)"
Diffstat (limited to 'nixos/tests/lightdm.nix')
-rw-r--r-- | nixos/tests/lightdm.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/lightdm.nix b/nixos/tests/lightdm.nix index b355081ffd672..67bd395be0649 100644 --- a/nixos/tests/lightdm.nix +++ b/nixos/tests/lightdm.nix @@ -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"); ''; }) |