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 | |
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')
-rw-r--r-- | nixos/doc/manual/development/running-nixos-tests-interactively.xml | 9 | ||||
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2009.xml | 6 |
2 files changed, 13 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> diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml index a0a0b2cb40e..627f1d08edd 100644 --- a/nixos/doc/manual/release-notes/rl-2009.xml +++ b/nixos/doc/manual/release-notes/rl-2009.xml @@ -656,6 +656,12 @@ systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ]; <package>nextcloud18</package> before upgrading to <package>nextcloud19</package> since Nextcloud doesn't support upgrades across multiple major versions. </para> + <para> + The <literal>nixos-run-vms</literal> script now deletes the + previous run machines states on test startup. You can use the + <literal>--keep-vm-state</literal> flag to match the previous + behaviour and keep the same VM state between different test runs. + </para> </listitem> </itemizedlist> </section> |