aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/notmuch-test
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2013-09-08 18:53:30 +0300
committerGravatar David Bremner <bremner@debian.org>2013-09-08 22:40:57 -0300
commit11a38054641b7b0e927bf574369d4d8dfc7b4742 (patch)
treef148ae976066c9298aa597dd1622d3898fa39172 /test/notmuch-test
parent5c19eb46a906819744a022463ee3fd7cdfaabbb9 (diff)
test: exit with nonzero value when not all tests completed successfully
If any of the tests in our test system is not passing the execution of the test suite completes with nonzero exit value. It is better to rely on the exit value of the test system instead of some arbitrary strings in test output (or use both).
Diffstat (limited to 'test/notmuch-test')
-rwxr-xr-xtest/notmuch-test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/notmuch-test b/test/notmuch-test
index 6db79795..aa28bb05 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -97,6 +97,9 @@ trap - HUP INT TERM
# Report results
./aggregate-results.sh test-results/*
+ev=$?
# Clean up
rm -rf test-results corpus.mail
+
+exit $ev