From: Christian Ruppert Date: Mon, 11 May 2026 17:18:55 +0000 (+0200) Subject: REGTESTS: Use ${tmpdir} instead of hardcoded /tmp/ X-Git-Tag: v3.4-dev12~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80fd27577335594c822137641a13d6e3535faad6;p=thirdparty%2Fhaproxy.git 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 --- 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