From eab1b10f54abc8de910acb87e8e2ec7db004224c Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 25 Aug 2023 20:53:33 +0100 Subject: [PATCH] unit test: Remote CI: Easy-RSA: 'init-pki' catch error Signed-off-by: Richard T Bonhomme --- dev/easytls-unit-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/easytls-unit-tests.sh b/dev/easytls-unit-tests.sh index e3dfb4c..b573e1b 100755 --- a/dev/easytls-unit-tests.sh +++ b/dev/easytls-unit-tests.sh @@ -615,11 +615,13 @@ elif [ -n "${EASYTLS_REMOTE_CI}" ]; then # Update safessl-easyrsa.cnf print "*** Update safessl-easyrsa.cnf - easyrsa init-pki" - "${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch init-pki + "${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch init-pki || fail "init-pki" + "${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch make-safe-ssl cp -vf "${WORK_DIR}/et-tdir${loops}/safessl-easyrsa.cnf" ./safessl-easyrsa.cnf || \ fail "(1) cp ${WORK_DIR}/et-tdir${loops}/safessl-easyrsa.cnf ./safessl-easyrsa.cnf" + # Remove the temp PKI - Only require safessl-easyrsa.cnf rm -rf "${WORK_DIR}/et-tdir${loops}"