summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-05-22 08:10:17 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-05-22 08:10:17 +0200
commit2475a6a2393c2b3fd0d53a351ebc41a86c04639e (patch)
treefbaf8828ba68ada81f70a73a49ee207750dff5da /nixos
parentf12208c5a4833b2b38fdd01cb7cfe23a7cfb79b7 (diff)
downloadnixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.gz
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.bz2
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.lz
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.xz
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.zst
nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.zip
nixos/test-driver: Fix bashism in Machine.pm.
Thanks to @bjornfor for the note.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lib/test-driver/Machine.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/Machine.pm b/nixos/lib/test-driver/Machine.pm
index 824f23bcc4b..db2c1a68692 100644
--- a/nixos/lib/test-driver/Machine.pm
+++ b/nixos/lib/test-driver/Machine.pm
@@ -499,7 +499,7 @@ sub screenshot {
 sub getScreenText {
     my ($self) = @_;
 
-    system("type -P tesseract &> /dev/null") == 0
+    system("command -v tesseract &> /dev/null") == 0
         or die "getScreenText used but enableOCR is false";
 
     my $text;