]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: make script exit (1) if it "fails" to source (.) a file
[notmuch] / test / test-lib.sh
index eeb5487bd6a31c29acedc597932b924d4638ffed..0bf7163e9f34863c9671689cdca98dcca0cfd85b 100644 (file)
@@ -96,7 +96,8 @@ _x32="$_x04$_x04$_x04$_x04$_x04$_x04$_x04$_x04"
 # test_description='Description of this test...
 # This test checks if command xyzzy does the right thing...
 # '
-# . ./test-lib.sh
+# . ./test-lib.sh || exit 1
+
 [ "x$ORIGINAL_TERM" != "xdumb" ] && (
                TERM=$ORIGINAL_TERM &&
                export TERM &&
@@ -1223,7 +1224,7 @@ test_init_ () {
 }
 
 
-. ./test-lib-common.sh
+. ./test-lib-common.sh || exit 1
 
 emacs_generate_script