Massively reduce the amount of code needed for linter tests

This commit is contained in:
w0rp committed 2018-07-15 18:28:28 +01:00
1 parent 5155a35a80
commit a42999a639
138 files changed
+1447 -3017

No files matched your search

+6 -1
View File
@@ -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