]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: Use ${tmpdir} instead of hardcoded /tmp/
authorChristian Ruppert <idl0r@qasl.de>
Mon, 11 May 2026 17:18:55 +0000 (19:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2026 07:03:02 +0000 (09:03 +0200)
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 <idl0r@qasl.de>
reg-tests/ssl/ocsp_auto_update.vtci

index b5bbba46e06b101daf6b1f6b99b731b45c2a8889..a6e548fc38510ae1ea27e1da9470189a0c2977a3 100644 (file)
@@ -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