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 C05076DE2008 for ; Sun, 19 Feb 2017 05:01:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 dlviKSPHPQSP for ; Sun, 19 Feb 2017 05:01:52 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 05D2F6DE2001 for ; Sun, 19 Feb 2017 05:01:51 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cfR74-0006GX-L4 for notmuch@notmuchmail.org; Sun, 19 Feb 2017 08:01:14 -0500 Received: (nullmailer pid 10012 invoked by uid 1000); Sun, 19 Feb 2017 13:01:49 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [Tomi Ollila] Re: [PATCH 2/2] test: use gpgconf --create-socketdir if available X-List-To: notmuch Date: Sun, 19 Feb 2017 09:01:49 -0400 Message-ID: <87h93q72rm.fsf@tethera.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Sun, 19 Feb 2017 13:01:52 -0000 --=-=-= Content-Type: text/plain I'm pretty sure Tomi meant to complain publicly ;). --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Return-path: Envelope-to: david@tethera.net Delivery-date: Sun, 19 Feb 2017 05:24:33 -0500 Received: from [2a02:2380:1:9:5054:ff:feb7:a4bc] (helo=guru.guru-group.fi ident=[U2FsdGVkX18IL7Wyh5ewGS2AKhQS2N7hsp3Dsz3U/6s=]) by fethera.tethera.net with esmtp (Exim 4.84_2) (envelope-from ) id 1cfOfQ-00063J-Vl for david@tethera.net; Sun, 19 Feb 2017 05:24:33 -0500 Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id EE6D010014D for ; Sun, 19 Feb 2017 12:24:44 +0200 (EET) From: Tomi Ollila To: David Bremner Subject: Re: [PATCH 2/2] test: use gpgconf --create-socketdir if available In-Reply-To: <20170214214239.9330-3-david@tethera.net> References: <20170214214239.9330-1-david@tethera.net> <20170214214239.9330-3-david@tethera.net> User-Agent: Notmuch/0.23.3+85~g2b85e66 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 14 2017, David Bremner wrote: > This enables the shortened socket pathes in /run or equivalent. The > explicit call to gpgconf is needed for nonstandard GNUPGHOME settings. 2=C2=BD comments inline: __> --- > test/test-lib.sh | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index 86e792a8..9aa6163b 100644 > --- a/test/test-lib.sh > +++ b/test/test-lib.sh > @@ -229,9 +229,18 @@ test_fixed=3D0 > test_broken=3D0 > test_success=3D0 >=20=20 > + > +_shutdown_gpg_agent () { > + if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} =3D=3D 1 ]; then '=3D=3D' is bashishm (well, maybe works in zsh too), standard with [ ... ] and (builtin) test(1) is just single '=3D' for equality. > + gpgconf --kill gpg-agent > + gpgconf --remove-socketdir > + fi > +} > + > _exit_common () { > code=3D$? > trap - EXIT > + _shutdown_gpg_agent better put `set +ex` _before_ `_shutdown_gpg_agent` so that possible failure there may not stop exit processing > set +ex > rm -rf "$TEST_TMPDIR" > } > @@ -1276,6 +1285,11 @@ test_init_ () { >=20=20 > . ./test-lib-common.sh || exit 1 >=20=20 > +# we need the setting of GNUPGHOME in test-lib-common.sh > +if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} =3D=3D 1 ]; then =3D=3D -> =3D=20 > + gpgconf --create-socketdir > +fi > + > emacs_generate_script >=20=20 >=20=20 > --=20 > 2.11.0 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch --=-=-=--