X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Faggregate-results.sh;h=75400e6e3e3f6f14dbecff9902df84ec5aaf26f9;hp=05fb0a92af89113b08fb86b936c3ba039d460083;hb=2c17327ee5c428e3d52a188b0433a130b4684438;hpb=00c63bf7364778a75591fe494e029233736af04d diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh index 05fb0a92..75400e6e 100755 --- a/test/aggregate-results.sh +++ b/test/aggregate-results.sh @@ -7,6 +7,7 @@ success=0 failed=0 broken=0 total=0 +all_skipped=0 for file do @@ -22,7 +23,10 @@ do broken) broken=$((broken + value)) ;; total) - total=$((total + value)) ;; + total=$((total + value)) + if [ "$value" -eq 0 ]; then + all_skipped=$((all_skipped + 1)) + fi esac done <"$file" done @@ -61,6 +65,10 @@ if [ "$skipped" -ne 0 ]; then pluralize_s "$skipped" echo "$skipped test$s skipped." fi +if [ "$all_skipped" -ne 0 ]; then + pluralize_s "$all_skipped" + echo "All tests in $all_skipped file$s skipped." +fi # Note that we currently do not consider skipped tests as failing the # build.