aboutsummaryrefslogtreecommitdiff
path: root/nixos/lib
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-10-24 21:28:38 +0200
committerAndreas Rammhold <andreas@rammhold.de>2020-10-25 20:09:33 +0100
commitfa25d84d1330ee66e9df41d4e5dd8e85d8b506a0 (patch)
tree5a5777e0f7b3b28ca97f317cadd7982b163eb5cf /nixos/lib
parent61b09f552c1b66befe83b114510c686ea98ffd0a (diff)
nixos/tests: fix testDriver reference in runInMachine function
In a previous commit I broke this as there is no longer one testDriver but only a function to generate one based on some QEMU inputs.
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/testing-python.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index 2a2a14bab7a2..d78193c26000 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -200,6 +200,7 @@ rec {
, machine
, preBuild ? ""
, postBuild ? ""
+ , qemu ? pkgs.qemu_test
, ... # ???
}:
let
@@ -254,7 +255,7 @@ rec {
unset xchg
export tests='${testScript}'
- ${testDriver}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
+ ${mkTestDriver qemu}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
''; # */
in