diff options
| author | David Bremner <david@tethera.net> | 2021-12-26 08:24:09 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-01-16 10:47:16 -0400 |
| commit | fd6d50b38f8d8529191f6c9b637ecb458018baa3 (patch) | |
| tree | 235511b92077d0f84d58711f673475e244db1989 /test/T050-new.sh | |
| parent | fad2e7540bf9309bfb335650ded753e9ed085eff (diff) | |
test: add known broken test for ignoring non-toplevel .notmuch
In [1] Rob observed that notmuch new ignored directories called
.notmuch everywhere in the tree, where they should only (and now, with
split configs, at most) be ignored at the top level. Add a test to
demonstrate the problem.
[1]: id:87mwhifu9a.fsf@trouble.defaultvalue.org
Diffstat (limited to 'test/T050-new.sh')
| -rwxr-xr-x | test/T050-new.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/T050-new.sh b/test/T050-new.sh index 7ea127d3..db13090b 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -351,6 +351,17 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1" notmuch config set new.tags $OLDCONFIG +test_begin_subtest ".notmuch only ignored at top level" +test_subtest_known_broken +generate_message '[dir]=foo/bar/.notmuch/cur' '[subject]="Do not ignore, very important"' +NOTMUCH_NEW > OUTPUT +notmuch search subject:Do-not-ignore | notmuch_search_sanitize >> OUTPUT +cat <<EOF > EXPECTED +Added 1 new message to the database. +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Do not ignore, very important (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "RFC822 group names are indexed" test_subtest_known_broken generate_message [to]="undisclosed-recipients:" |
