mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-14 01:36:09 +02:00
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 <idl0r@qasl.de>
This commit is contained in:
parent
d9a7ff9b6c
commit
80fd275773
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user