aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Walters <markwalters1009@gmail.com>2016-11-14 13:49:28 +0000
committerDavid Bremner <david@tethera.net>2016-11-14 18:01:36 -0400
commit70c6ac377b29fd17d62d97d13a4c5223bf7785cb (patch)
tree2d00cab3ba078c488785f571b7aa3207b6138031
parent2dd96d6bd642c3b32ce1997528f69665019b7497 (diff)
Test: fix draft test for emacs23
emacs24 and emacs23 have different secure tag defaults: in particular, mml-secure-message-sign only signs the part on emacs23 but the whole message on emacs24. This difference makes one of the draft tests fail (which causes a cascade of later failures) on emacs23. It seems that travis uses emacs23 so it is useful to fix this. We do this by forcing the whole message to be signed in either case -- the code snippet is extracted from mml-secure-message-sign on emacs24.
-rwxr-xr-xtest/T630-emacs-draft.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/T630-emacs-draft.sh b/test/T630-emacs-draft.sh
index 46fc356f..cd9e33a7 100755
--- a/test/T630-emacs-draft.sh
+++ b/test/T630-emacs-draft.sh
@@ -32,7 +32,9 @@ test_begin_subtest "Saving a signed draft adds header"
test_emacs '(notmuch-mua-mail)
(message-goto-subject)
(insert "draft-test-0003")
- (mml-secure-message-sign)
+ ;; We would use (mml-secure-message-sign) but on emacs23
+ ;; that only signs the part, not the whole message.
+ (mml-secure-message mml-secure-method '\''sign)
(notmuch-draft-save)
(test-output)'
header_count=$(notmuch show --format=raw subject:draft-test-0003 | grep -c ^X-Notmuch-Emacs-Secure)