From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org
Subject: [Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "="
Date: Wed, 14 Mar 2012 12:26:52 +0000 [thread overview]
Message-ID: <1331728014-32698-2-git-send-email-markwalters1009@gmail.com> (raw)
In-Reply-To: <1331728014-32698-1-git-send-email-markwalters1009@gmail.com>
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
next prev parent reply other threads:[~2012-03-14 12:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 12:26 [Patch v2 0/3] Add test and fix exclude bug Mark Walters
2012-03-14 12:26 ` Mark Walters [this message]
2012-03-14 12:26 ` [Patch v2 2/3] test: add tests for message only search Mark Walters
2012-03-14 12:26 ` [Patch v2 3/3] lib: fix an exclude bug Mark Walters
2012-03-16 3:33 ` [Patch v2 0/3] Add test and fix " Austin Clements
2012-03-17 6:02 ` Jameson Graef Rollins
2012-03-18 12:43 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331728014-32698-2-git-send-email-markwalters1009@gmail.com \
--to=markwalters1009@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).