git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitfa25d84d1330ee66e9df41d4e5dd8e85d8b506a0 authorAndreas Rammhold <andreas@rammhold.de> dateSat 24 Oct 2020, 21:28 (6 years ago) parent61b09f5
1 file changed+2−1
nixos/lib/testing-python.nix+2−1
nixos/lib/testing-python.nix+2−1
@@ -200,6 +200,7 @@ rec {
200200 , machine
201201 , preBuild ? ""
202202 , postBuild ? ""
203+ , qemu ? pkgs.qemu_test
203204 , ... # ???
204205 }:
205206 let
@@ -254,7 +255,7 @@ rec {
254255 unset xchg
255256
256257 export tests='${testScript}'
257− ${testDriver}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
258+ ${mkTestDriver qemu}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
258259 ''; # */
259260
260261 in