]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: sanitize Date and timestamp fields in json
[notmuch] / test / test-lib.sh
index 8611ba5ecefc6eddf62ae7da95d3fab39a421df8..8f18e735e5aee10262f5b5487d99e05f25ad260e 100644 (file)
@@ -625,7 +625,9 @@ notmuch_json_show_sanitize ()
 {
     sed \
        -e 's|"id": "[^"]*",|"id": "XXXXX",|g' \
-       -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g'
+       -e 's|"Date": "Fri, 05 Jan 2001 [^"]*0000"|"Date": "GENERATED_DATE"|g' \
+       -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g' \
+       -e 's|"timestamp": 97.......|"timestamp": 42|g'
 }
 
 notmuch_emacs_error_sanitize ()