mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
test: check openssl prequisite for add_gpgsm_home
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
This commit is contained in:
parent
0478c0e077
commit
a19d2b0d2b
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ add_gnupg_home ()
|
||||||
|
|
||||||
add_gpgsm_home ()
|
add_gpgsm_home ()
|
||||||
{
|
{
|
||||||
|
test_require_external_prereq openssl
|
||||||
|
|
||||||
local fpr
|
local fpr
|
||||||
[ -e "$GNUPGHOME/gpgsm.conf" ] && return
|
[ -e "$GNUPGHOME/gpgsm.conf" ] && return
|
||||||
_gnupg_exit () { gpgconf --kill all 2>/dev/null || true; }
|
_gnupg_exit () { gpgconf --kill all 2>/dev/null || true; }
|
||||||
|
|
Loading…
Reference in a new issue