summary refs log tree commit diff
path: root/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2022-01-07 10:32:13 -0800
committerJonathan Ringer <jonringer117@gmail.com>2022-01-07 10:32:13 -0800
commit172bcecd6b6b962dc8b5fbce89d6192611c3a891 (patch)
treef8365267401d84993476ecf264a85072547d9718 /nixos/doc/manual/development/running-nixos-tests-interactively.section.md
parent1ea9de26332ffcaff8b2a989263bd1c2b95b3392 (diff)
parent86f9a32c4c542295a9a0298db6fe998b1a14730d (diff)
downloadnixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar.gz
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar.bz2
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar.lz
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar.xz
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.tar.zst
nixpkgs-172bcecd6b6b962dc8b5fbce89d6192611c3a891.zip
Merge remote-tracking branch 'origin/staging-next' into staging
Diffstat (limited to 'nixos/doc/manual/development/running-nixos-tests-interactively.section.md')
-rw-r--r--nixos/doc/manual/development/running-nixos-tests-interactively.section.md14
1 files changed, 7 insertions, 7 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 f8729820179..4c399586eb5 100644
--- a/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
+++ b/nixos/doc/manual/development/running-nixos-tests-interactively.section.md
@@ -4,19 +4,19 @@ The test itself can be run interactively. This is particularly useful
 when developing or debugging a test:
 
 ```ShellSession
-$ nix-build nixos/tests/login.nix -A driverInteractive
+$ nix-build . -A nixosTests.login.driverInteractive
 $ ./result/bin/nixos-test-driver --interactive
-starting VDE switch for network 1
->
+[...]
+>>>
 ```
 
 You can then take any Python statement, e.g.
 
 ```py
-> start_all()
-> test_script()
-> machine.succeed("touch /tmp/foo")
-> print(machine.succeed("pwd")) # Show stdout of command
+>>> start_all()
+>>> test_script()
+>>> machine.succeed("touch /tmp/foo")
+>>> print(machine.succeed("pwd")) # Show stdout of command
 ```
 
 The function `test_script` executes the entire test script and drops you