From 3e24a76d7e952f8c6a6f72dd8ff41b211f6fe994 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Mon, 11 Apr 2022 19:38:44 +0100 Subject: [PATCH] Allow saving test data and improve log output Signed-off-by: Richard T Bonhomme --- op-test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/op-test.sh b/op-test.sh index f36fdc915..94a007a15 100644 --- a/op-test.sh +++ b/op-test.sh @@ -105,6 +105,8 @@ run_unit_test () # Start unit tests log ">>> BEGIN unit tests:" + [ "$no_delete" ] && export SAVE_PKI=1 + if [ "${dry_run}" ]; then log "<> sh ${utest_bin} ${verb}" estat=1 @@ -119,6 +121,7 @@ run_unit_test () fi fi log "<<< END unit tests:" + unset SAVE_PKI else log "unit-test abandoned" estat=1 @@ -249,6 +252,8 @@ download_opensslv3 () { log "version check failed: ${ERSA_UT}/${target_file}" ssl_bin="${ERSA_UT}/${target_file}" ssl_bin_ok=1 + # Set up Easy-RSA Unit-Test for OpenSSL-v3 + export EASYRSA_OPENSSL="${ssl_bin}" else # download and basic check log "curl_it ${target_file}" @@ -270,8 +275,7 @@ download_opensslv3 () { fi fi - log "setup openssl3 - hey hokey-dokey-lopey" - log "OpenSSL-v3 ENabled" + log "OpenSSL-v3 enabled" else if [ "$EASYRSA_NIX" ]; then