Hey guys,

the attached patch fixes reg-tests/ssl/ocsp_auto_update.vtc* when using e.g. sanboxed/unprivileged environments.
It should be backported to at least 3.3

--
Regards,
Christian Ruppert
From e3e36e953e2f7a5cd36f85dfacee9ccd1dc0f6ff Mon Sep 17 00:00:00 2001
From: Christian Ruppert <[email protected]>
Date: Mon, 11 May 2026 19:18:55 +0200
Subject: [PATCH] REGTESTS: Use ${tmpdir} instead of hardcoded /tmp/

Tests may be excuted in sandboxed or minimalistic / restricted
environments, so incosistencies might cause trouble, like missing
permissions. So lets use the tmpdir variable instead, so the user might
define some path

Signed-off-by: Christian Ruppert <[email protected]>
---
 reg-tests/ssl/ocsp_auto_update.vtci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reg-tests/ssl/ocsp_auto_update.vtci b/reg-tests/ssl/ocsp_auto_update.vtci
index b5bbba46e..a6e548fc3 100644
--- a/reg-tests/ssl/ocsp_auto_update.vtci
+++ b/reg-tests/ssl/ocsp_auto_update.vtci
@@ -407,7 +407,7 @@ haproxy h5 -cli {
 shell {
     ocsp_resp_file="${tmpdir}.ocsp_resp.der"
 
-   echo "show ssl ocsp-response base64 303b300906052b0e03021a050004148a83e0060faff709ca7e9b95522a2e81635fda0a0414f652b0e435d5ea923851508f0adbe92d85de007a02021015" | socat "${tmpdir}/h5/stats" - | sed -e 's/.\{72\}/&\n/g' | openssl base64 -d | tee /tmp/with-o64 > $ocsp_resp_file
+   echo "show ssl ocsp-response base64 303b300906052b0e03021a050004148a83e0060faff709ca7e9b95522a2e81635fda0a0414f652b0e435d5ea923851508f0adbe92d85de007a02021015" | socat "${tmpdir}/h5/stats" - | sed -e 's/.\{72\}/&\n/g' | openssl base64 -d | tee "${tmpdir}/with-o64" > $ocsp_resp_file
 
    if [ $? -eq 0 ]
    then
-- 
2.53.0

Reply via email to