From 7630f300ba52f4aab22ee696fe1507d0ef9790bc Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 9 Mar 2014 15:19:09 +0200 Subject: 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. --- test/test-lib.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test-lib.sh') diff --git a/test/test-lib.sh b/test/test-lib.sh index 9824bb67..8697d6a7 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -667,6 +667,11 @@ notmuch_search_sanitize () perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/' } +notmuch_search_files_sanitize() +{ + sed -e "s,$MAIL_DIR,MAIL_DIR," +} + NOTMUCH_SHOW_FILENAME_SQUELCH='s,filename:.*/mail,filename:/XXX/mail,' notmuch_show_sanitize () { -- cgit v1.2.3