X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Faggregate-results.sh;h=b016edb9117108523642b17862b20846f4fbc89c;hp=732d6ca7f53ca8bf332f1179199ec132fe6abe04;hb=84719b08f757a6079f4c3331d0c476d19b265948;hpb=3fa843216c918fe4a6151e55947cf3a7f46fcdb5 diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh index 732d6ca7..b016edb9 100755 --- a/test/aggregate-results.sh +++ b/test/aggregate-results.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -eu + fixed=0 success=0 failed=0 @@ -79,3 +81,10 @@ if [ "$skipped" != "0" ]; then tests=$(pluralize "test" $skipped) echo "$skipped $tests skipped." fi + +if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 -a $skipped -eq 0 ] +then + exit 0 +else + exit 1 +fi