Branch: refs/heads/master
Home: https://github.com/NixOS/nixpkgs
Commit: 235c2228ca9f608f898bc455c9b5bb1e3c4cb3f0
https://github.com/NixOS/nixpkgs/commit/235c2228ca9f608f898bc455c9b5bb1e3c4cb3f0
Author: aszlig <[email protected]>
Date: 2015-05-21 (Thu, 21 May 2015)
Changed paths:
M nixos/doc/manual/development/writing-nixos-tests.xml
M nixos/lib/test-driver/Machine.pm
M nixos/lib/testing.nix
Log Message:
-----------
nixos/test-driver: Add new getScreenText function.
Basically, this creates a screenshot and throws tesseract at it to
recognize the characters from the screenshot. In order to produce a
result that is well enough, we're using lanczos scaling and scale the
image up to 400% of its original size.
This provides the base functionality for a new Machine method which will
be called waitForText. I originally had that idea long ago when writing
the VM tests for VirtualBox and Chromium, but thought it would be
disproportionate to the case.
The downside however is that VM tests now depend on tesseract, but given
the average runtime of our tests it really shouldn't have a too big
impact and it's only a runtime dependency after all.
Another issue is that the OCR process takes quite some time to finish,
but IMHO it's better (as in more deterministic) than to rely on sleep().
Signed-off-by: aszlig <[email protected]>
Commit: 8bd025a75e295609647af0510544efb857678ec8
https://github.com/NixOS/nixpkgs/commit/8bd025a75e295609647af0510544efb857678ec8
Author: aszlig <[email protected]>
Date: 2015-05-21 (Thu, 21 May 2015)
Changed paths:
M nixos/doc/manual/development/writing-nixos-tests.xml
M nixos/lib/test-driver/Machine.pm
Log Message:
-----------
nixos/test-driver: Add new waitForText function.
As promised in the previous commit, this can be used similarly to
$machine->waitForWindow, where you supply a regular expression and it's
retrying OCR until the regexp matches.
Signed-off-by: aszlig <[email protected]>
Commit: 77d7aa6742a25f11cad469805ec948c39a194707
https://github.com/NixOS/nixpkgs/commit/77d7aa6742a25f11cad469805ec948c39a194707
Author: aszlig <[email protected]>
Date: 2015-05-21 (Thu, 21 May 2015)
Changed paths:
M nixos/tests/installer.nix
Log Message:
-----------
nixos/tests/luksroot: Switch to use waitForText.
Fixes the "blindly hope that 60 seconds is enough" issue from 1f34503,
so that we now have a (hopefully) reliable way to wait for the
passphrase prompt.
Signed-off-by: aszlig <[email protected]>
Compare: https://github.com/NixOS/nixpkgs/compare/5ac9e87b1bf7...77d7aa6742a2_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits