test: check if emacs is available in the beginning of test_emacs

Unfortunately, this is needed to avoid the emacs waiting loop.
This commit is contained in:
Dmitry Kurochkin 2011-11-27 22:36:18 +04:00 committed by David Bremner
parent f0fbdad04b
commit 5af65f65e8

View 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