X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=7448b454a023231947688a542d701438728b8497;hp=f34b1fb86af15eb89b91c328e2558d0f0eb8207b;hb=61a9448b58ca1320d97cfe580155cf23b5b9ad62;hpb=d29ff5699de10394d7fdab41ce1c39e18c736332 diff --git a/test/test-lib.sh b/test/test-lib.sh index f34b1fb8..7448b454 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -985,6 +985,14 @@ test_emacs () { done fi + # Clear test-output output file. Most Emacs tests end with a + # call to (test-output). If the test code fails with an + # exception before this call, the output file won't get + # updated. Since we don't want to compare against an output + # file from another test, so start out with an empty file. + rm -f OUTPUT + touch OUTPUT + emacsclient --socket-name="$EMACS_SERVER" --eval "(progn $@)" }