test: insert into the folder with trailing /

From database's point of view, "Drafts" and "Drafts/" are different
folders

Signed-off-by: Yuri Volchkov <yuri.volchkov@gmail.com>
Amended: add test_subtest_known_broken (db)
This commit is contained in:
Yuri Volchkov 2017-08-12 18:47:30 +02:00 committed by David Bremner
parent dea75b5dd6
commit cd8551d53a

View file

@ -132,6 +132,14 @@ output=$(notmuch search --output=files path:Drafts/new)
dirname=$(dirname "$output") dirname=$(dirname "$output")
test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
test_begin_subtest "Insert message into folder with trailing /"
test_subtest_known_broken
gen_insert_msg
notmuch insert --folder=Drafts/ < "$gen_msg_filename"
output=$(notmuch search --output=files id:${gen_msg_id})
dirname=$(dirname "$output")
test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
test_begin_subtest "Insert message into folder, add/remove tags" test_begin_subtest "Insert message into folder, add/remove tags"
gen_insert_msg gen_insert_msg
notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename" notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename"