[PATCH 6/7] test: Fix T350-crypto.sh on Emacs snapshots
Vladimir Panteleev
notmuch at thecybershadow.net
Thu Aug 17 10:51:44 PDT 2017
The "reply to encrypted message" subtest of T350-crypto.sh was failing
with Emacs snapshots because it assumed the "In-Reply-To" and
"References" headers it attempts to filter out would never be
line-wrapped. This apparently changed in the latest Emacs versions,
which causes the test to fail when ran against them.
* T350-crypto.sh: Unwrap headers before filtering them.
---
test/T350-crypto.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh
index 7dab39a2..69d9b160 100755
--- a/test/T350-crypto.sh
+++ b/test/T350-crypto.sh
@@ -394,6 +394,7 @@ test_expect_equal_json \
test_begin_subtest "reply to encrypted message"
output=$(notmuch reply --decrypt subject:"test encrypted message 002" \
+ | tr '\n' '|' | sed 's/|[[:space:]][[:space:]]*/ /g' | tr '|' '\n' \
| grep -v -e '^In-Reply-To:' -e '^References:')
expected='From: Notmuch Test Suite <test_suite at notmuchmail.org>
Subject: Re: test encrypted message 002
--
2.13.3
More information about the notmuch
mailing list