]> git.notmuchmail.org Git - notmuch/blobdiff - test/aggregate-results.sh
test: basic: drop 'ensure all available tests are run'
[notmuch] / test / aggregate-results.sh
index 0f1ea332b3e8b7800e644851cfdcce6b7c258d45..b016edb9117108523642b17862b20846f4fbc89c 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env bash
+
+set -eu
 
 fixed=0
 success=0
@@ -79,3 +81,10 @@ if [ "$skipped" != "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