execute_process: add options for fatal errors on subprocess failure

Fixes: #19930
This commit is contained in:
Asit Dhal
2020-09-20 04:29:53 +02:00
parent 47b569a858
commit 116a427eb1
13 changed files with 101 additions and 2 deletions

View File

@@ -23,7 +23,8 @@ Execute one or more child processes.
[ERROR_STRIP_TRAILING_WHITESPACE]
[ENCODING <name>]
[ECHO_OUTPUT_VARIABLE]
[ECHO_ERROR_VARIABLE])
[ECHO_ERROR_VARIABLE]
[COMMAND_ERROR_IS_FATAL <ANY|LAST>])
Runs the given sequence of one or more commands.
@@ -116,6 +117,11 @@ Options:
This is analogous to the ``tee`` Unix command.
``COMMAND_ERROR_IS_FATAL <ANY|LAST>``
``COMMAND_ERROR_IS_FATAL ANY`` option stops processing if any command fails.
``COMMAND_ERROR_IS_FATAL LAST`` option stops processing if the last command
in the command list fails.
If more than one ``OUTPUT_*`` or ``ERROR_*`` option is given for the
same pipe the precedence is not specified.
If no ``OUTPUT_*`` or ``ERROR_*`` options are given the output will