From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id BCABD6DE1D10 for ; Tue, 28 Feb 2017 07:06:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.504 X-Spam-Level: X-Spam-Status: No, score=0.504 tagged_above=-999 required=5 tests=[AWL=-0.148, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IH-G25teTCoX for ; Tue, 28 Feb 2017 07:06:05 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 7A8F66DE1D09 for ; Tue, 28 Feb 2017 07:06:04 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 41E4E10005A; Tue, 28 Feb 2017 17:05:31 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 3/3] test: move GNUPGHOME to TEST_TMPDIR In-Reply-To: <20170228002650.26762-4-david@tethera.net> References: <20170228002650.26762-1-david@tethera.net> <20170228002650.26762-4-david@tethera.net> User-Agent: Notmuch/0.23.5+113~gfa95df1 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 15:06:06 -0000 On Tue, Feb 28 2017, David Bremner wrote: > We already use this directory for dtach sockets, so it makes sense to > put gnupg sockets there as well. There doesn't seem to be a clean way > to put a fully functional socket in a different location than > GNUPGHOME. > --- LGTM. Tomi > test/test-lib-common.sh | 1 - > test/test-lib.sh | 2 ++ > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh > index 03ef1d2d..a96cfbeb 100644 > --- a/test/test-lib-common.sh > +++ b/test/test-lib-common.sh > @@ -158,7 +158,6 @@ export HOME="${TMP_DIRECTORY}/home" > mkdir -p "${HOME}" > > MAIL_DIR="${TMP_DIRECTORY}/mail" > -export GNUPGHOME="${TMP_DIRECTORY}/gnupg" > export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config" > > mkdir -p "${test}" > 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 > > -- > 2.11.0 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch