]> git.cworth.org Git - notmuch/blobdiff - test/T160-json.sh
test: make script exit (1) if it "fails" to source (.) a file
[notmuch] / test / T160-json.sh
index c1cf649d6dcad15735767911f414aa58361a4060..b346f37ee4717d43e8229079ec5d0482d84d08fe 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 test_description="--format=json output"
-. ./test-lib.sh
+. ./test-lib.sh || exit 1
 
 test_begin_subtest "Show message: json"
 add_message "[subject]=\"json-show-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[bcc]=\"test_suite+bcc@notmuchmail.org\"" "[reply-to]=\"test_suite+replyto@notmuchmail.org\"" "[body]=\"json-show-message\""