diff options
| author | David Bremner <david@tethera.net> | 2021-09-30 14:17:47 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-12-04 12:15:49 -0400 |
| commit | e22bbb124e4f9191880e80d6517346f35bf7e2a9 (patch) | |
| tree | cff4d213fe46c8fd1b3948075f9823404e1e65b7 /test/T070-insert.sh | |
| parent | eafb033d3220f1388f434dc29618924659fc2d33 (diff) | |
test: known broken tests for leading/trailing ws in config
These tests duplicate the bug/misfeature reported in
id:CA+Tk8fzjPLaEd3vL1f9ebk_bF_RV8PDTLzDupraTkCLCpJAmCg@mail.gmail.com
Diffstat (limited to 'test/T070-insert.sh')
| -rwxr-xr-x | test/T070-insert.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/T070-insert.sh b/test/T070-insert.sh index 208deb1c..9d29c859 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -234,6 +234,19 @@ output=$(notmuch show --format=json id:$gen_msg_id) test_json_nodes <<<"$output" \ 'new_tags:[0][0][0]["tags"] = ["bar", "foo"]' +test_begin_subtest "leading/trailing whitespace in new.tags is ignored" +test_subtest_known_broken +# avoid complications with leading spaces and "notmuch config" +sed -i 's/^tags=.*$/tags= fu bar ; ; bar /' notmuch-config +gen_insert_msg +notmuch insert < $gen_msg_filename +notmuch dump id:$gen_msg_id | sed 's/ --.*$//' > OUTPUT +cat <<EOF >EXPECTED +#notmuch-dump batch-tag:3 config,properties,tags ++bar +fu%20bar +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Tags starting with '-' in new.tags are forbidden" notmuch config set new.tags "-foo;bar" gen_insert_msg |
