X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=518d9c7fdb001b1a807182f068dae1cc2bb86b8a;hp=e7b83392f168c71ca7cb62ca19fb4ac30df1a0ba;hb=1044775fc003914ee63b53254b7ca8700983a6e7;hpb=c008dd13523bb1356653fa8678cfe5d26a6feb82 diff --git a/test/test-lib.sh b/test/test-lib.sh index e7b83392..518d9c7f 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -270,6 +270,8 @@ die () { GIT_EXIT_OK= # Note: TEST_TMPDIR *NOT* exported! TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX") +# Put GNUPGHOME in TMPDIR to avoid problems with long paths. +export GNUPGHOME="${TEST_TMPDIR}/gnupg" trap 'trap_exit' EXIT trap 'trap_signal' HUP INT TERM @@ -736,7 +738,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 ()