]> git.notmuchmail.org Git - notmuch/commitdiff
test: Fix to actually report errors (!).
authorCarl Worth <cworth@cworth.org>
Mon, 20 Sep 2010 21:39:40 +0000 (14:39 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 20 Sep 2010 21:39:40 +0000 (14:39 -0700)
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.

test/aggregate-results.sh

index cc5b83fbaac9a3b6980341fd2e62d9cab24c98cb..0f1ea332b3e8b7800e644851cfdcce6b7c258d45 100755 (executable)
@@ -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