aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-03-22 07:54:50 -0300
committerDavid Bremner <david@tethera.net>2016-05-25 07:07:56 -0300
commite042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a (patch)
tree9db7e61d5efce86c2c8e6fdece0d132d7c9eef9e /test/test-lib.sh
parent92e59568fa4eec466db78af6c21c39ca5826b0d7 (diff)
CLI: add optional config data to dump output.
Note that it changes the default dump output format, but doesn't break existing notmuch-restore. It might break user scripts though.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r--test/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 62e123d6..e4398620 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -674,6 +674,12 @@ NOTMUCH_NEW ()
notmuch new "${@}" | grep -v -E -e '^Processed [0-9]*( total)? file|Found [0-9]* total file'
}
+NOTMUCH_DUMP_TAGS ()
+{
+ # this relies on the default format being batch-tag, otherwise some tests will break
+ notmuch dump --include=tags "${@}" | sed '/^#/d' | sort
+}
+
notmuch_search_sanitize ()
{
perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'