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.
This commit is contained in:
Carl Worth 2010-09-20 14:39:40 -07:00
parent 49a8cb9de3
commit 341e2bd86e

View file

@ -49,7 +49,7 @@ pluralize () {
} }
echo "Notmuch test suite complete." echo "Notmuch test suite complete."
if [ "$fixed" = "0" ] && [ "$broken" = "0" ]; then if [ "$fixed" = "0" ] && [ "$failed" = "0" ]; then
tests=$(pluralize "test" $total) tests=$(pluralize "test" $total)
printf "All $total $tests " printf "All $total $tests "
if [ "$broken" = "0" ]; then if [ "$broken" = "0" ]; then