* [Tomi Ollila] Re: [PATCH 2/2] test: use gpgconf --create-socketdir if available
@ 2017-02-19 13:01 David Bremner
0 siblings, 0 replies; only message in thread
From: David Bremner @ 2017-02-19 13:01 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 54 bytes --]
I'm pretty sure Tomi meant to complain publicly ;).
[-- Attachment #2: Type: message/rfc822, Size: 2900 bytes --]
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>
Subject: Re: [PATCH 2/2] test: use gpgconf --create-socketdir if available
Date: Sun, 19 Feb 2017 12:24:43 +0200
Message-ID: <m2fujatr4k.fsf@guru.guru-group.fi>
On Tue, Feb 14 2017, David Bremner <david@tethera.net> wrote:
> This enables the shortened socket pathes in /run or equivalent. The
> explicit call to gpgconf is needed for nonstandard GNUPGHOME settings.
2½ 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=0
> test_broken=0
> test_success=0
>
> +
> +_shutdown_gpg_agent () {
> + if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} == 1 ]; then
'==' is bashishm (well, maybe works in zsh too), standard
with [ ... ] and (builtin) test(1) is just single '=' for equality.
> + gpgconf --kill gpg-agent
> + gpgconf --remove-socketdir
> + fi
> +}
> +
> _exit_common () {
> code=$?
> 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_ () {
>
> . ./test-lib-common.sh || exit 1
>
> +# we need the setting of GNUPGHOME in test-lib-common.sh
> +if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} == 1 ]; then
== -> =
> + gpgconf --create-socketdir
> +fi
> +
> emacs_generate_script
>
>
> --
> 2.11.0
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-19 13:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-19 13:01 [Tomi Ollila] Re: [PATCH 2/2] test: use gpgconf --create-socketdir if available David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).