diff options
author | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2020-06-18 13:23:32 +0200 |
---|---|---|
committer | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2020-06-21 10:27:51 +0200 |
commit | 7e7aa529d94971e172f741013d10d8002553bffc (patch) | |
tree | e287d6e9a9280d761ba5bafcc7835f4ef87d3629 /nixos/doc/manual/development | |
parent | 71ace42e1223e79eb6dcdb900a92c2b627310709 (diff) | |
download | nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar.gz nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar.bz2 nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar.lz nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar.xz nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.tar.zst nixpkgs-7e7aa529d94971e172f741013d10d8002553bffc.zip |
test-driver.py: delete VM state directory after test run
Keeping the VM state test across several run sometimes lead to subtle and hard to spot errors in practice. We delete the VM state which contains (among other things) the qcow volume. We also introduce a -K (--keep-vm-state) flag making VM state to persist after the test run. This flag makes test-driver.py to match its previous behaviour.
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r-- | nixos/doc/manual/development/running-nixos-tests-interactively.xml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/doc/manual/development/running-nixos-tests-interactively.xml b/nixos/doc/manual/development/running-nixos-tests-interactively.xml index 31216874c70..a11a9382764 100644 --- a/nixos/doc/manual/development/running-nixos-tests-interactively.xml +++ b/nixos/doc/manual/development/running-nixos-tests-interactively.xml @@ -38,7 +38,12 @@ starting VDE switch for network 1 </para> <para> - The machine state is kept across VM restarts in - <filename>/tmp/vm-state-</filename><varname>machinename</varname>. + You can re-use the VM states coming from a previous run + by setting the <command>--keep-vm-state</command> flag. +<screen> +<prompt>$ </prompt>./result/bin/nixos-run-vms --keep-vm-state +</screen> + The machine state is stored in the + <filename>$TMPDIR/vm-state-</filename><varname>machinename</varname> directory. </para> </section> |