Branch: refs/heads/master
Home: https://github.com/NixOS/nixpkgs
Commit: 8be00dc71dbe409447feddc42d26bdfaf38703a4
https://github.com/NixOS/nixpkgs/commit/8be00dc71dbe409447feddc42d26bdfaf38703a4
Author: aszlig <[email protected]>
Date: 2015-05-22 (Fri, 22 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
M nixos/tests/installer.nix
Log Message:
-----------
nixos/test-driver: Make tesseract OCR optional.
By default this is now enabled, and it has to be explicitely enabled
using "enableOCR = true". If it is set to false, any usage of
getScreenText or waitForText will fail with an error suggesting to pass
enableOCR.
This should get rid of the rather large dependency on tesseract which
we don't need for most tests.
Note, that I'm using system("type -P") here to check whether tesseract
is in PATH. I know it's a bashism but we already have other bashisms
within the test scripts and we also run it with bash, so IMHO it's not a
problem here.
Signed-off-by: aszlig <[email protected]>
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits