From 5af65f65e8a32fb7f11f5b1c2036e35a4c4809e2 Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Sun, 27 Nov 2011 22:36:18 +0400 Subject: [PATCH] test: check if emacs is available in the beginning of test_emacs Unfortunately, this is needed to avoid the emacs waiting loop. --- test/test-lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-lib.sh b/test/test-lib.sh index 2422e32d..11e66465 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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 -- 2.43.0