diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-15 18:24:53 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-15 18:28:28 +0100 |
commit | a42999a639b2916b769a85f37d037be314d9d61b (patch) | |
tree | 5ebfb4d357dc673efa93fd32a66b489c4510de40 /run-tests | |
parent | 5155a35a80fe3b20659eb0f28cc6cc720532dd3f (diff) | |
download | ale-a42999a639b2916b769a85f37d037be314d9d61b.zip |
Massively reduce the amount of code needed for linter tests
Diffstat (limited to 'run-tests')
-rwxr-xr-x | run-tests | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |