From f7771131b6ff0eaa2bfb5ed969a98cd7cc78220b Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 15 Aug 2015 17:12:07 +0300 Subject: [PATCH] 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)" --- nixos/tests/lightdm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/lightdm.nix b/nixos/tests/lightdm.nix index b355081ffd6..67bd395be06 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"); ''; })