diff options
author | Vladimír Čunát <v@cunat.cz> | 2021-11-05 10:47:38 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2021-11-05 10:48:58 +0100 |
commit | 555a4016a2c052270489b8307f8ae650349ffc23 (patch) | |
tree | 42e67e5ddd24d0b2e392530afeb2b55d96a57c52 /nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml | |
parent | 9a96e0ec8c93e0040906a8044d213933cebc32ee (diff) | |
parent | e53afee6daf71f89beac7c3d2b618abadd37ab71 (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml')
-rw-r--r-- | nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml | 13 |
1 files changed, 12 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 a3b63422433e..e0fd90f2bac2 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,12 @@ start_all() <listitem> <para> Execute a shell command, returning a list - <literal>(status, stdout)</literal>. Takes an optional + <literal>(status, stdout)</literal>. If the command detaches, + it must close stdout, as <literal>execute</literal> will wait + for this to consume all output reliably. This can be achieved + by redirecting stdout to stderr <literal>>&2</literal>, + to <literal>/dev/console</literal>, + <literal>/dev/null</literal> or a file. 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 @@ -306,6 +311,12 @@ start_all() Dereferencing unset variables fail the command. </para> </listitem> + <listitem> + <para> + It will wait for stdout to be closed. See + <literal>execute</literal>. + </para> + </listitem> </itemizedlist> </listitem> </varlistentry> |