X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=518d9c7fdb001b1a807182f068dae1cc2bb86b8a;hp=86e792a85df67007cc66a3925b99e91b8ddb60e3;hb=1044775fc003914ee63b53254b7ca8700983a6e7;hpb=5a42bb96c1ad4fcbcbf3dc882ba814c06e657f98 diff --git a/test/test-lib.sh b/test/test-lib.sh index 86e792a8..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