]> git.notmuchmail.org Git - notmuch/commitdiff
test: check if emacs is available in the beginning of test_emacs
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 27 Nov 2011 18:36:18 +0000 (22:36 +0400)
committerDavid Bremner <bremner@debian.org>
Sun, 27 Nov 2011 19:33:13 +0000 (11:33 -0800)
Unfortunately, this is needed to avoid the emacs waiting loop.

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