X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Ftest-lib.sh;h=270c718b28539e10a55329a26c1f5319b1cd6198;hb=a9fec12a0804113596c927d45f627f8b874aab67;hp=0bf7163e9f34863c9671689cdca98dcca0cfd85b;hpb=02a2eeb427d6b424029f6e5e5ddad4c6ec987741;p=notmuch diff --git a/test/test-lib.sh b/test/test-lib.sh index 0bf7163e..270c718b 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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.