From 260d9cc7e10e477a60d11e9b44d80fd76a4492ae Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 12 Aug 2021 22:50:29 +0200 Subject: [PATCH] nixos/testing: re-add nixos-run-vms script Originally removed in 926fb9396881202e727e5ec1fbf609b64455b388. This one is actually quite useful for `nixos-build-vms(8)`. --- nixos/lib/testing-python.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index 6369d6ef05d4..070a3a7ddc21 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -186,6 +186,12 @@ rec { --set startScripts "''${vmStartScripts[*]}" \ --set testScript "$out/test-script" \ --set vlans '${toString vlans}' + + ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms + wrapProgram $out/bin/nixos-run-vms \ + --set startScripts "''${vmStartScripts[*]}" \ + --set testScript "${pkgs.writeText "start-all" "start_all(); join_all();"}" \ + --set vlans '${toString vlans}' ''); # Make a full-blown test