From: Yuri Volchkov Date: Sat, 12 Aug 2017 16:47:30 +0000 (+0200) Subject: test: insert into the folder with trailing / X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd8551d53a69c43aed5276abc1e492d3d6553979;p=notmuch.git test: insert into the folder with trailing / From database's point of view, "Drafts" and "Drafts/" are different folders Signed-off-by: Yuri Volchkov Amended: add test_subtest_known_broken (db) --- diff --git a/test/T070-insert.sh b/test/T070-insert.sh index 48f212ee..187dfd37 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -132,6 +132,14 @@ output=$(notmuch search --output=files path:Drafts/new) dirname=$(dirname "$output") 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" gen_insert_msg notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename"