]> git.notmuchmail.org Git - notmuch/commitdiff
test: Don't return the result of checking for running emacs to the tester.
authorDavid Edmondson <dme@dme.org>
Tue, 24 Jan 2012 16:14:04 +0000 (16:14 +0000)
committerDavid Bremner <bremner@debian.org>
Wed, 25 Jan 2012 11:25:25 +0000 (07:25 -0400)
When checking for a running emacs, test_emacs evaluates the empty list
'()'. This returns 'nil' when emacs is running, which is then
prepended to the actual test result. Given that it is not part of the
actual test output the test harness can incorrectly report test
failure (or success).

test/test-lib.sh

index 0da60fbbf5e3a03e9ffc0b173cb738196b71815a..82c686ca074030e86397693775512c764751b690 100644 (file)
@@ -926,7 +926,7 @@ test_emacs () {
                                --eval '(orphan-watchdog $$)'" || return
                EMACS_SERVER="$server_name"
                # wait until the emacs server is up
                                --eval '(orphan-watchdog $$)'" || return
                EMACS_SERVER="$server_name"
                # wait until the emacs server is up
-               until test_emacs '()' 2>/dev/null; do
+               until test_emacs '()' >/dev/null 2>/dev/null; do
                        sleep 1
                done
        fi
                        sleep 1
                done
        fi