From f12208c5a4833b2b38fdd01cb7cfe23a7cfb79b7 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 22 May 2015 08:01:17 +0200 Subject: [PATCH] nixos/testing: Use stripped down tesseract only. Only include the English language for the VM tests, because we most likely won't need other languages. At least for now. Signed-off-by: aszlig --- nixos/lib/testing.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index 2039740a457..ee254ae187f 100644 --- a/nixos/lib/testing.nix +++ b/nixos/lib/testing.nix @@ -91,6 +91,8 @@ rec { vms = map (m: m.config.system.build.vm) (lib.attrValues nodes); + ocrProg = tesseract.override { enableLanguages = [ "eng" ]; }; + # Generate onvenience wrappers for running the test driver # interactively with the specified network, and for starting the # VMs from the command line. @@ -107,14 +109,14 @@ rec { vms="$(for i in ${toString vms}; do echo $i/bin/run-*-vm; done)" wrapProgram $out/bin/nixos-test-driver \ --add-flags "$vms" \ - ${lib.optionalString enableOCR "--prefix PATH : '${tesseract}/bin'"} \ + ${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \ --run "testScript=\"\$(cat $out/test-script)\"" \ --set testScript '"$testScript"' \ --set VLANS '"${toString vlans}"' ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms wrapProgram $out/bin/nixos-run-vms \ --add-flags "$vms" \ - ${lib.optionalString enableOCR "--prefix PATH : '${tesseract}/bin'"} \ + ${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \ --set tests '"startAll; joinAll;"' \ --set VLANS '"${toString vlans}"' \ ${lib.optionalString (builtins.length vms == 1) "--set USE_SERIAL 1"}