]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: Unset ALTERNATE_EDITOR before running emacsclient
[notmuch] / test / test-lib.sh
index 0bf7163e9f34863c9671689cdca98dcca0cfd85b..270c718b28539e10a55329a26c1f5319b1cd6198 100644 (file)
@@ -82,6 +82,9 @@ unset CDPATH
 
 unset GREP_OPTIONS
 
+# For emacsclient
+unset ALTERNATE_EDITOR
+
 # Convenience
 #
 # A regexp to match 5 and 40 hexdigits
@@ -720,6 +723,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.