X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test;h=a0c47d496fd134018efbf257910b17beb3e8d9c1;hb=8c3d19313e590590db3ecfe0fb7177f4f6aee023;hp=ced6b478abe458924b5fc981c731528d8de92316;hpb=6dec2af55bb393e338586a2a399a659e54240a1f;p=notmuch diff --git a/test/notmuch-test b/test/notmuch-test index ced6b478..a0c47d49 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -19,6 +19,8 @@ cd $(dirname "$0") TESTS=" basic help-test + config + setup new count search @@ -27,8 +29,11 @@ TESTS=" search-position-overlap-bug search-insufficient-from-quoting search-limiting + excludes tagging json + sexp + text multipart thread-naming raw @@ -54,6 +59,13 @@ TESTS=" argument-parsing emacs-test-functions emacs-address-cleaning + emacs-hello + emacs-show + missing-headers + hex-escaping + parse-time-string + search-date + thread-replies " TESTS=${NOTMUCH_TESTS:=$TESTS} @@ -73,6 +85,12 @@ trap 'e=$?; kill $!; exit $e' HUP INT TERM for test in $TESTS; do $TEST_TIMEOUT_CMD ./$test "$@" & wait $! + # If the test failed without producing results, then it aborted, + # so we should abort, too. + RES=$? + if [[ $RES != 0 && ! -e "test-results/${test%.sh}" ]]; then + exit $RES + fi done trap - HUP INT TERM