diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests index 18687f61a3..cbdd79f6db 100755 --- a/automation/scripts/run-tools-tests +++ b/automation/scripts/run-tools-tests @@ -20,7 +20,7 @@ for f in "$1"/*; do echo "Running $f" printf ' \n' "$f" >> "$xml_out" "$f" 2>&1 | tee /tmp/out - ret=$? + ret=${PIPESTATUS[0]} if [ "$ret" -ne 0 ]; then echo "FAILED: $f" failed+=" $f"