]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - test/test-lib.sh
CLI: add optional config data to dump output.
[notmuch.git] / test / test-lib.sh
index 62e123d65aba8deae1f6e461ac8c4442562f608a..e43986206ced0ae1df88e1be3be82138cecc7e1c 100644 (file)
@@ -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/'