summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/notmuch/files')
-rw-r--r--net-mail/notmuch/files/fix-gpg-tests.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mail/notmuch/files/fix-gpg-tests.patch b/net-mail/notmuch/files/fix-gpg-tests.patch
new file mode 100644
index 000000000000..e674f185fde4
--- /dev/null
+++ b/net-mail/notmuch/files/fix-gpg-tests.patch
@@ -0,0 +1,16 @@
+diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh
+index 03ef1d2d..178820bd 100644
+--- a/test/test-lib-common.sh
++++ b/test/test-lib-common.sh
+@@ -139,10 +139,7 @@ export PATH MANPATH
+ # Test repository
+ test="tmp.$(basename "$0" .sh)"
+ test -n "$root" && test="$root/$test"
+-case "$test" in
+-/*) TMP_DIRECTORY="$test" ;;
+- *) TMP_DIRECTORY="$TEST_DIRECTORY/$test" ;;
+-esac
++TMP_DIRECTORY="$(mktemp -d)"
+ test ! -z "$debug" || remove_tmp=$TMP_DIRECTORY
+ rm -fr "$test" || {
+ GIT_EXIT_OK=t