summary refs log tree commit diff
path: root/nixos/doc/manual/development
diff options
context:
space:
mode:
authorDavid Arnold <dar@xoe.solutions>2021-06-06 12:00:12 -0500
committerDavid Arnold <dgx.arnold@gmail.com>2021-08-05 19:07:11 -0500
commit926fb9396881202e727e5ec1fbf609b64455b388 (patch)
treeed0325450bfa2982cbc008edc6b5b70a78458985 /nixos/doc/manual/development
parent077b2825cd3328f83dbc1774ce62751dae4cb719 (diff)
downloadnixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar.gz
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar.bz2
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar.lz
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar.xz
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.tar.zst
nixpkgs-926fb9396881202e727e5ec1fbf609b64455b388.zip
nixos/tests/test-driver: normalise test driver entrypoint(s)
Previously the driver was configured exclusively through convoluted
environment variables.

Now the driver's defaults are configured through env variables.

Some additional concerns are in the github comments of this PR.
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r--nixos/doc/manual/development/running-nixos-tests-interactively.section.md13
1 files changed, 2 insertions, 11 deletions
diff --git a/nixos/doc/manual/development/running-nixos-tests-interactively.section.md b/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
index 3ba4e16e77f..f8729820179 100644
--- a/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
+++ b/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
@@ -5,7 +5,7 @@ when developing or debugging a test:
 
 ```ShellSession
 $ nix-build nixos/tests/login.nix -A driverInteractive
-$ ./result/bin/nixos-test-driver
+$ ./result/bin/nixos-test-driver --interactive
 starting VDE switch for network 1
 >
 ```
@@ -24,20 +24,11 @@ back into the test driver command line upon its completion. This allows
 you to inspect the state of the VMs after the test (e.g. to debug the
 test script).
 
-To just start and experiment with the VMs, run:
-
-```ShellSession
-$ nix-build nixos/tests/login.nix -A driverInteractive
-$ ./result/bin/nixos-run-vms
-```
-
-The script `nixos-run-vms` starts the virtual machines defined by test.
-
 You can re-use the VM states coming from a previous run by setting the
 `--keep-vm-state` flag.
 
 ```ShellSession
-$ ./result/bin/nixos-run-vms --keep-vm-state
+$ ./result/bin/nixos-test-driver --interactive --keep-vm-state
 ```
 
 The machine state is stored in the `$TMPDIR/vm-state-machinename`