aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-09-20 07:41:35 +0200
committerGravatar David Bremner <david@tethera.net>2014-09-21 21:12:52 +0200
commitb4892677016c7a994dea75b8ea71bbde92ac17cb (patch)
treec34d23f4632715f47b1994426896253c6e657f58
parentae27403641cf4d897ce3a2ac21dc6bad5cce7b5d (diff)
test/emacs: globally force the html renderer to html2text
Previously we did this for a single test, but some other proposed tests ( id:1398105468-14317-3-git-send-email-amdragon@mit.edu ) show similar breakage when switching renderers.
-rwxr-xr-xtest/T310-emacs.sh2
-rw-r--r--test/test-lib.el5
2 files changed, 6 insertions, 1 deletions
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh
index ac966e52..c3024021 100755
--- a/test/T310-emacs.sh
+++ b/test/T310-emacs.sh
@@ -483,7 +483,7 @@ test_expect_equal_file OUTPUT EXPECTED
test_begin_subtest "Reply within emacs to an html-only message"
add_message '[content-type]="text/html"' \
'[body]="Hi,<br />This is an <b>HTML</b> test message.<br /><br />OK?"'
-test_emacs "(let ((message-hidden-headers '()) (mm-text-html-renderer 'html2text))
+test_emacs "(let ((message-hidden-headers '()))
(notmuch-show \"id:${gen_msg_id}\")
(notmuch-show-reply)
(test-output))"
diff --git a/test/test-lib.el b/test/test-lib.el
index 36afe630..bbc03cba 100644
--- a/test/test-lib.el
+++ b/test/test-lib.el
@@ -181,3 +181,8 @@ nothing."
;; suite
(setq notmuch-tag-deleted-formats
'((".*" nil)))
+
+;; force a common html renderer, to avoid test variations between
+;; environments
+
+(setq mm-text-html-renderer 'html2text)