X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.el;h=04c8d63450533dbf566ff25cb6f2276b2032ee5b;hp=36afe630e5edb35d0a007bcb3be6a2131d9e8d20;hb=f4cdabccd0e75d94d7f6f4d50684afc67bbf7f0d;hpb=f92342cb76fa3e1fa2f1c2e727f8ddf1a5c21b7d diff --git a/test/test-lib.el b/test/test-lib.el index 36afe630..04c8d634 100644 --- a/test/test-lib.el +++ b/test/test-lib.el @@ -59,7 +59,9 @@ "Save visible text in current buffer to file FILENAME. Default FILENAME is OUTPUT." (notmuch-post-command) - (let ((text (visible-buffer-string))) + (let ((text (visible-buffer-string)) + ;; Tests expect output in UTF-8 encoding + (coding-system-for-write 'utf-8)) (with-temp-file (or filename "OUTPUT") (insert text)))) (defun visible-buffer-string () @@ -181,3 +183,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)