summaryrefslogtreecommitdiff
path: root/run-tests
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-15 18:24:53 +0100
committerw0rp <devw0rp@gmail.com>2018-07-15 18:28:28 +0100
commita42999a639b2916b769a85f37d037be314d9d61b (patch)
tree5ebfb4d357dc673efa93fd32a66b489c4510de40 /run-tests
parent5155a35a80fe3b20659eb0f28cc6cc720532dd3f (diff)
downloadale-a42999a639b2916b769a85f37d037be314d9d61b.zip
Massively reduce the amount of code needed for linter tests
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