]> git.notmuchmail.org Git - notmuch/blobdiff - test/T370-search-folder-coherence.sh
test: standardize argument order to test_expect_equal_file
[notmuch] / test / T370-search-folder-coherence.sh
index 3f6ec76348c07de88d99def9003475083fa05f5e..d1cb45eccc143ed27273f9ef83ccc214306dba6a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 test_description='folder tags removed and added through file renames remain consistent'
-. ./test-lib.sh
+. ./test-lib.sh || exit 1
 
 test_begin_subtest "No new messages"
 output=$(NOTMUCH_NEW)
@@ -27,8 +27,8 @@ cat <<EOF >EXPECTED
 MAIL_DIR/msg-001
 MAIL_DIR/spam/msg-001
 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)