]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
lib: API to retrieve database revision and UUID
[notmuch] / test / test-lib.sh
index 0bf7163e9f34863c9671689cdca98dcca0cfd85b..126911fb385aacb7aa087ab9c7c099419c7641fd 100644 (file)
@@ -720,6 +720,11 @@ notmuch_date_sanitize ()
     sed \
        -e 's/^Date: Fri, 05 Jan 2001 .*0000/Date: GENERATED_DATE/'
 }
+
+notmuch_uuid_sanitize ()
+{
+    sed 's/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/UUID/g'
+}
 # End of notmuch helper functions
 
 # Use test_set_prereq to tell that a particular prerequisite is available.