From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Cc: David Bremner <david@tethera.net>
Subject: [PATCH 1/2] test: check openssl prequisite for add_gpgsm_home
Date: Tue, 8 Jun 2021 20:27:13 -0300 [thread overview]
Message-ID: <20210608232714.255289-1-david@tethera.net> (raw)
This is a fix for the test failures reported by Dan Čermák [1].
It is more robust to check for the prerequisite inside the function
that uses it, rather than in every test file that calls the function.
[1]: id:87k0n4fqgm.fsf@tethera.net
---
test/test-lib.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 4c9f2a21..862c6bc9 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -136,6 +136,8 @@ add_gnupg_home ()
add_gpgsm_home ()
{
+ test_require_external_prereq openssl
+
local fpr
[ -e "$GNUPGHOME/gpgsm.conf" ] && return
_gnupg_exit () { gpgconf --kill all 2>/dev/null || true; }
--
2.30.2\r
next reply other threads:[~2021-06-08 23:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 23:27 David Bremner [this message]
2021-06-08 23:27 ` [PATCH 2/2] emacs: require seq for seq-some David Bremner
2021-06-08 23:42 ` David Bremner
2021-06-20 20:20 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210608232714.255289-1-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).