summary refs log tree commit diff
path: root/nixos/doc/manual/from_md/development
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2021-10-24 15:46:45 +0200
committerJanne Heß <janne@hess.ooo>2021-10-28 11:51:20 +0200
commit1640359f333d8af40bf1f3e7961943ea04c6d1a1 (patch)
tree4403716a678d84d81955d78757aae47bffa7d410 /nixos/doc/manual/from_md/development
parent5f917bc2750d5a2474f817c3c8ef81997d4dd108 (diff)
downloadnixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar.gz
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar.bz2
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar.lz
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar.xz
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.tar.zst
nixpkgs-1640359f333d8af40bf1f3e7961943ea04c6d1a1.zip
nixos/test-runner: Fix execute() flakiness
Instead of using the magic string, we now just base64-encode everything
and check for a newline.
Diffstat (limited to 'nixos/doc/manual/from_md/development')
-rw-r--r--nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml b/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
index 83a96d5bb22..a3b63422433 100644
--- a/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
+++ b/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
@@ -266,7 +266,13 @@ start_all()
       <listitem>
         <para>
           Execute a shell command, returning a list
-          <literal>(status, stdout)</literal>.
+          <literal>(status, stdout)</literal>. Takes an optional
+          parameter <literal>check_return</literal> that defaults to
+          <literal>True</literal>. Setting this parameter to
+          <literal>False</literal> will not check for the return code
+          and return -1 instead. This can be used for commands that shut
+          down the VM and would therefore break the pipe that would be
+          used for retrieving the return code.
         </para>
       </listitem>
     </varlistentry>