X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/341e2bd86e4ed934ae23312779e0b4a0e8c8b4d5..cfabfc6dab95f28eaa3d7261bca38ade32a69f79:/test/aggregate-results.sh diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh index 0f1ea332..63228546 100755 --- a/test/aggregate-results.sh +++ b/test/aggregate-results.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/usr/bin/env bash + +set -eu fixed=0 success=0 @@ -79,3 +81,13 @@ if [ "$skipped" != "0" ]; then tests=$(pluralize "test" $skipped) echo "$skipped $tests skipped." fi + +# Note that we currently do not consider skipped tests as failing the +# build. + +if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 ] +then + exit 0 +else + exit 1 +fi