]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: move GNUPGHOME to TEST_TMPDIR
[notmuch] / test / test-lib.sh
index 86e792a85df67007cc66a3925b99e91b8ddb60e3..518d9c7fdb001b1a807182f068dae1cc2bb86b8a 100644 (file)
@@ -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