From 20893b3a700a5818aa4769b1c00c1a99c171af02 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Mon, 19 Oct 2020 17:20:27 +0200 Subject: [PATCH] nixos/tests: expose both the interactive and non-interactive driver For a lot of the work the non-interactive drivers are enough and it is probably a good idea to keep it accessible for debugging without touching the Nix expression. --- .../manual/development/running-nixos-tests-interactively.xml | 4 ++-- nixos/lib/testing-python.nix | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/development/running-nixos-tests-interactively.xml b/nixos/doc/manual/development/running-nixos-tests-interactively.xml index a11a9382764..a6044d5f89e 100644 --- a/nixos/doc/manual/development/running-nixos-tests-interactively.xml +++ b/nixos/doc/manual/development/running-nixos-tests-interactively.xml @@ -9,7 +9,7 @@ The test itself can be run interactively. This is particularly useful when developing or debugging a test: -$ nix-build nixos/tests/login.nix -A driver +$ nix-build nixos/tests/login.nix -A driverInteractive $ ./result/bin/nixos-test-driver starting VDE switch for network 1 > @@ -30,7 +30,7 @@ starting VDE switch for network 1 To just start and experiment with the VMs, run: -$ nix-build nixos/tests/login.nix -A driver +$ nix-build nixos/tests/login.nix -A driverInteractive $ ./result/bin/nixos-run-vms The script nixos-run-vms starts the virtual machines diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index 69cad8cdceb..302c7f78bf8 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -172,7 +172,8 @@ rec { else test // { inherit nodes test; - driver = driver testDriverInteractive; + driver = driver testDriver; + driverInteractive = driver testDriverInteractive; }; runInMachine =