diff --git a/tests/rt_utils.sh b/tests/rt_utils.sh index 3b7a9a3d5d..6881fbf75a 100755 --- a/tests/rt_utils.sh +++ b/tests/rt_utils.sh @@ -17,8 +17,8 @@ jobid=0 redirect_out_err() { ( set -e -o pipefail ; ( "$@" 2>&1 1>&3 3>&- | tee err ) 3>&1 1>&2 | tee out ) # The above shell redirection copies stdout to "out" and stderr to "err" - # while still sending them to stdout and stderr. It does this without - # relying on bash-specific extensions or non-standard OS features. + # while still sending them to stdout and stderr. It ensures the entire + # redirect_out_err command will return non-zero if "$@" or tee return non-zero. } function compute_petbounds_and_tasks() {