[PATCH] test: duplicate mids: add an extra broken search test
Mark Walters
markwalters1009 at gmail.com
Sun Aug 27 11:48:23 PDT 2017
---
Hi
Many thanks to bremner for the parent patch. I thought it might be
worth adding a search test after the broken show test demonstrating
the distinction between show and search. When I added it I found it
actually gives the other file as the answer!
This applies on top of the parent patch.
Best wishes
Mark
test/T670-duplicate-mid.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh
index 55ebde3..0de2bc0 100755
--- a/test/T670-duplicate-mid.sh
+++ b/test/T670-duplicate-mid.sh
@@ -86,6 +86,14 @@ expected='[[[{
[]]]]'
test_expect_equal_json "$output" "$expected"
+test_begin_subtest 'First subject preserved in notmuch-search file order'
+test_subtest_known_broken
+notmuch search id:duplicate | notmuch_search_sanitize > OUTPUT
+cat <<EOF > EXPECTED
+thread:XXX 2001-01-05 [1/1(3)] Notmuch Test Suite; message 1 (inbox unread)
+EOF
+test_expect_equal_file EXPECTED OUTPUT
+
rm ${MAIL_DIR}/00-copy4
test_begin_subtest 'Deleted first duplicate file does not stop notmuch show from working'
output=$(notmuch show --body=false --format=json id:duplicate | notmuch_json_show_sanitize)
--
2.1.4
More information about the notmuch
mailing list