[Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "="
Mark Walters
markwalters1009 at gmail.com
Wed Mar 14 05:26:52 PDT 2012
The tests for the exclude code in search and count use the line
notmuch config set search.exclude_tags = deleted
which actually sets the exclude tags to be "=" and "deleted". Remove
the "=" from this line.
---
test/count | 2 +-
test/search | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/count b/test/count
index 976fff1..b97fc06 100755
--- a/test/count
+++ b/test/count
@@ -38,7 +38,7 @@ test_expect_equal \
"`notmuch count --output=threads ${SEARCH}`"
test_begin_subtest "count excluding \"deleted\" messages"
-notmuch config set search.exclude_tags = deleted
+notmuch config set search.exclude_tags deleted
generate_message '[subject]="Not deleted"'
generate_message '[subject]="Another not deleted"'
generate_message '[subject]="Deleted"'
diff --git a/test/search b/test/search
index 081f60c..3e3a462 100755
--- a/test/search
+++ b/test/search
@@ -130,7 +130,7 @@ output=$(notmuch search "bödý" | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-message-body-subject (inbox unread)"
test_begin_subtest "Exclude \"deleted\" messages from search"
-notmuch config set search.exclude_tags = deleted
+notmuch config set search.exclude_tags deleted
generate_message '[subject]="Not deleted"'
generate_message '[subject]="Deleted"'
notmuch new > /dev/null
--
1.7.9.1
More information about the notmuch
mailing list