]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
tests: account for varying-size cryptographic signatures
[notmuch] / test / test-lib.sh
index e7b83392f168c71ca7cb62ca19fb4ac30df1a0ba..86e792a85df67007cc66a3925b99e91b8ddb60e3 100644 (file)
@@ -736,7 +736,8 @@ notmuch_json_show_sanitize ()
        -e 's|"Date": "Fri, 05 Jan 2001 [^"]*0000"|"Date": "GENERATED_DATE"|g' \
        -e 's|"filename": "signature.asc",||g' \
        -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g' \
-       -e 's|"timestamp": 97.......|"timestamp": 42|g'
+       -e 's|"timestamp": 97.......|"timestamp": 42|g' \
+        -e 's|"content-length": [1-9][0-9]*|"content-length": "NONZERO"|g'
 }
 
 notmuch_emacs_error_sanitize ()