net-mail/notmuch: Fix tests to work with >=app-crypt/gnupg-2.1.16

Tests have been failing because path for Unix socket was too long.
Socket had been created in temporary directory within workdir. Create
temporary directory in /tmp instead.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Amadeusz Żołnowski
2017-02-05 10:29:51 +00:00
parent 31feae5192
commit c932649c01
3 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND}
"
DOCS=( AUTHORS NEWS README )
PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" )
SITEFILE="50${PN}-gentoo.el"
MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"

View File

@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND}
"
DOCS=( AUTHORS NEWS README )
PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" )
SITEFILE="50${PN}-gentoo.el"
MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"