-#!/bin/sh
+#!/usr/bin/env bash
+
+set -eu
fixed=0
success=0
}
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
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