lol

nixos/doc/running-nixos-tests-interactively: Describe interactive option

+31 -9
+8
nixos/doc/manual/development/running-nixos-tests-interactively.section.md
··· 24 24 you to inspect the state of the VMs after the test (e.g. to debug the 25 25 test script). 26 26 27 + ## Reuse VM state {#sec-nixos-test-reuse-vm-state} 28 + 27 29 You can re-use the VM states coming from a previous run by setting the 28 30 `--keep-vm-state` flag. 29 31 ··· 33 35 34 36 The machine state is stored in the `$TMPDIR/vm-state-machinename` 35 37 directory. 38 + 39 + ## Interactive-only test configuration {#sec-nixos-test-interactive-configuration} 40 + 41 + You can add configuration that is specific to the interactive test driver, by adding to the `interactive` option. 42 + `interactive` is a copy of the regular test options namespace, and is used by the interactive test driver. 43 + It can be helpful for troubleshooting changes that you don't want to apply to regular test runs.
+23 -9
nixos/doc/manual/from_md/development/running-nixos-tests-interactively.section.xml
··· 25 25 completion. This allows you to inspect the state of the VMs after 26 26 the test (e.g. to debug the test script). 27 27 </para> 28 - <para> 29 - You can re-use the VM states coming from a previous run by setting 30 - the <literal>--keep-vm-state</literal> flag. 31 - </para> 32 - <programlisting> 28 + <section xml:id="sec-nixos-test-reuse-vm-state"> 29 + <title>Reuse VM state</title> 30 + <para> 31 + You can re-use the VM states coming from a previous run by setting 32 + the <literal>--keep-vm-state</literal> flag. 33 + </para> 34 + <programlisting> 33 35 $ ./result/bin/nixos-test-driver --keep-vm-state 34 36 </programlisting> 35 - <para> 36 - The machine state is stored in the 37 - <literal>$TMPDIR/vm-state-machinename</literal> directory. 38 - </para> 37 + <para> 38 + The machine state is stored in the 39 + <literal>$TMPDIR/vm-state-machinename</literal> directory. 40 + </para> 41 + </section> 42 + <section xml:id="sec-nixos-test-interactive-configuration"> 43 + <title>Interactive-only test configuration</title> 44 + <para> 45 + You can add configuration that is specific to the interactive test 46 + driver, by adding to the <literal>interactive</literal> option. 47 + <literal>interactive</literal> is a copy of the regular test 48 + options namespace, and is used by the interactive test driver. It 49 + can be helpful for troubleshooting changes that you don’t want to 50 + apply to regular test runs. 51 + </para> 52 + </section> 39 53 </section>