diff options
author | Jani Nikula <jani@nikula.org> | 2014-03-09 15:19:09 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-03-11 19:22:52 -0300 |
commit | 7630f300ba52f4aab22ee696fe1507d0ef9790bc (patch) | |
tree | ed3f2f8131cebd5617ace41f1e0c771e5e600cff /test/T090-search-output.sh | |
parent | 8c37821a0d09db8a231e0ef31d5862cbf902f77b (diff) |
test: add notmuch_search_files_sanitize and use it
We do this in a lot of places, so make it a helper in the test-lib.
Diffstat (limited to 'test/T090-search-output.sh')
-rwxr-xr-x | test/T090-search-output.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/T090-search-output.sh b/test/T090-search-output.sh index 86544ac9..a8ab9205 100755 --- a/test/T090-search-output.sh +++ b/test/T090-search-output.sh @@ -181,7 +181,7 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "--output=files" -notmuch search --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT +notmuch search --output=files '*' | notmuch_search_files_sanitize >OUTPUT cat <<EOF >EXPECTED MAIL_DIR/cur/52:2, MAIL_DIR/cur/53:2, @@ -240,7 +240,7 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "--output=files --duplicate=1" -notmuch search --output=files --duplicate=1 '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT +notmuch search --output=files --duplicate=1 '*' | notmuch_search_files_sanitize >OUTPUT cat <<EOF >EXPECTED MAIL_DIR/cur/52:2, MAIL_DIR/cur/53:2, @@ -298,7 +298,7 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "--output=files --format=json" -notmuch search --format=json --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT +notmuch search --format=json --output=files '*' | notmuch_search_files_sanitize >OUTPUT cat <<EOF >EXPECTED ["MAIL_DIR/cur/52:2,", "MAIL_DIR/cur/53:2,", @@ -357,7 +357,7 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "--output=files --format=json --duplicate=2" -notmuch search --format=json --output=files --duplicate=2 '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT +notmuch search --format=json --output=files --duplicate=2 '*' | notmuch_search_files_sanitize >OUTPUT cat <<EOF >EXPECTED ["MAIL_DIR/cur/51:2,"] EOF |