diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2019-06-15 17:28:44 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-07-05 17:58:23 +0200 |
| commit | b6e589f54f25594f6beb7b5ee9e884c75f3bd633 (patch) | |
| tree | 013c4e6fe4c42c7b0b18633e065c585a4f747d81 /test/aggregate-results.sh | |
| parent | 290eccc6402d53eb1ccf3d365927854104aff1ee (diff) | |
test: aggregate-results.sh: count test files where all tests skipped
Previously, when all tests were skipped on a test file, there were
no indication of this in the final results aggregate-results.sh
printed.
Now count of the files where all tests were skipped is printed.
Diffstat (limited to 'test/aggregate-results.sh')
| -rwxr-xr-x | test/aggregate-results.sh | 10 |
1 files changed, 9 insertions, 1 deletions
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. |
