summaryrefslogtreecommitdiff
path: root/run-tests
diff options
context:
space:
mode:
Diffstat (limited to 'run-tests')
-rwxr-xr-xrun-tests7
1 files changed, 6 insertions, 1 deletions
diff --git a/run-tests b/run-tests
index 0463c8ff..ad375693 100755
--- a/run-tests
+++ b/run-tests
@@ -149,13 +149,18 @@ failed=0
index=0
for pid in $pid_list; do
+ this_failed=0
index=$((index+1))
if ! wait "$pid"; then
failed=1
+ this_failed=1
fi
- cat "$output_dir/$index"
+ # Hide output for things that passed if -q is set.
+ if [ "$quiet_flag" != '-q' ] || ((this_failed)); then
+ cat "$output_dir/$index"
+ fi
done
if ((failed)); then