X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT370-search-folder-coherence.sh;h=cf202bb3e0a03f24fcce0c51b14e6e33de76d28b;hp=3f6ec76348c07de88d99def9003475083fa05f5e;hb=2707c06a0fc587a68096a3ec6f054ba4f0d7e7c7;hpb=a755c9d6a9099366cc82ba3a4bee8e6d2b83d529 diff --git a/test/T370-search-folder-coherence.sh b/test/T370-search-folder-coherence.sh index 3f6ec763..cf202bb3 100755 --- a/test/T370-search-folder-coherence.sh +++ b/test/T370-search-folder-coherence.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description='folder tags removed and added through file renames remain consistent' -. ./test-lib.sh +. $(dirname "$0")/test-lib.sh || exit 1 test_begin_subtest "No new messages" output=$(NOTMUCH_NEW) @@ -24,15 +24,15 @@ test_expect_equal "$output" "No new mail." test_begin_subtest "Multiple files for same message" cat <EXPECTED -MAIL_DIR/msg-001 -MAIL_DIR/spam/msg-001 +MAIL_DIR/msg-XXX +MAIL_DIR/spam/msg-XXX EOF -notmuch search --output=files id:$id_x | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT -test_expect_equal_file OUTPUT EXPECTED +notmuch search --output=files id:$id_x | notmuch_search_files_sanitize >OUTPUT +test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "Test matches folder:spam" output=$(notmuch search folder:spam) -test_expect_equal "$output" "thread:0000000000000001 2001-01-05 [1/1] Notmuch Test Suite; Single new message (inbox unread)" +test_expect_equal "$output" "thread:0000000000000001 2001-01-05 [1/1(2)] Notmuch Test Suite; Single new message (inbox unread)" test_begin_subtest "Remove folder:spam copy of email" rm $dir/spam/$(basename $file_x)