3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #9263 from @dezgeg.

This looks for the window title instead of OCRing the clock from the
IceWM panel. Of course, this has the drawback, that whenever IceWM is
started it doesn't necessarily mean that the panel is also visible at
that time, so we might want to drop the screenshot of the "session" as
well.
This commit is contained in:
aszlig 2015-08-20 12:55:23 +02:00
commit fbfdafc2c9
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

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