diff options
| author | David Bremner <david@tethera.net> | 2016-03-22 07:54:50 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-05-25 07:07:56 -0300 |
| commit | e042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a (patch) | |
| tree | 9db7e61d5efce86c2c8e6fdece0d132d7c9eef9e /test/test-lib.sh | |
| parent | 92e59568fa4eec466db78af6c21c39ca5826b0d7 (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.sh | 6 |
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/' |
