]> git.notmuchmail.org Git - notmuch/commit
test: Unset ALTERNATE_EDITOR before running emacsclient
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 29 Dec 2015 08:52:17 +0000 (09:52 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 30 Dec 2015 15:28:30 +0000 (11:28 -0400)
commita9fec12a0804113596c927d45f627f8b874aab67
tree322cefceee64dedf30bb0ad94d53b025e5385c19
parentc2dfaccc9080f819a4ab3739ded7485044993ad4
test: Unset ALTERNATE_EDITOR before running emacsclient

ALTERNATE_EDITOR causes emacsclient to run an alternate editor if the
emacs server is not ready. This can collide with intended
functionality in test-lib.sh.

If the ALTERNATE_EDITOR is set but empty, emacsclient runs emacs
daemon and tries to connect to it. When this happens the emacs run by
test-lib.sh fails to start the server and the subsequent attempts to
use the server fail because the daemon started by emacsclient does not
know about notmuch-test-progn. This leads to test suite failure due to
time out on any emacs test.
test/test-lib.sh