From: Carl Worth Date: Mon, 20 Sep 2010 21:39:40 +0000 (-0700) Subject: test: Fix to actually report errors (!). X-Git-Tag: 0.4~86 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=341e2bd86e4ed934ae23312779e0b4a0e8c8b4d5;hp=49a8cb9de33d17f2ceb091b37c0e00c5a2ba17f5;p=notmuch test: Fix to actually report errors (!). A bug in the results-aggregation code was causing the test suite to report "all tests passed" even when there were failures, (as long as there were also no "broken" tests). Fix this. --- diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh index cc5b83fb..0f1ea332 100755 --- a/test/aggregate-results.sh +++ b/test/aggregate-results.sh @@ -49,7 +49,7 @@ pluralize () { } echo "Notmuch test suite complete." -if [ "$fixed" = "0" ] && [ "$broken" = "0" ]; then +if [ "$fixed" = "0" ] && [ "$failed" = "0" ]; then tests=$(pluralize "test" $total) printf "All $total $tests " if [ "$broken" = "0" ]; then