aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-06-08 16:39:10 -0300
committerDavid Bremner <david@tethera.net>2021-06-08 17:15:46 -0300
commita19d2b0d2b8c666d0a3641dc2e7e1b4e73b7c2bd (patch)
treebb17ac87736c8f104dbb4126c7c65074eac00672
parent0478c0e077a697caeaa2f99678f69b57e6975b6e (diff)
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
-rw-r--r--test/test-lib.sh2
1 files changed, 2 insertions, 0 deletions
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; }