]> git.cworth.org Git - obsolete/notmuch-old/blobdiff - test/test-lib.sh
test: check if emacs is available in the beginning of test_emacs
[obsolete/notmuch-old] / test / test-lib.sh
index 2422e32d9ece07aae03871fb0c81ea7b2825608c..11e66465108bb952d09443adfe0f68dbf29654e8 100644 (file)
@@ -894,6 +894,10 @@ EOF
 }
 
 test_emacs () {
+       # test dependencies beforehand to avoid the waiting loop below
+       test_require_external_prereq emacs || return
+       test_require_external_prereq emacsclient || return
+
        if [ -z "$EMACS_SERVER" ]; then
                server_name="notmuch-test-suite-$$"
                # start a detached session with an emacs server