mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-01 07:49:57 +00:00
ssl-opt.sh: if the server fails, do treat it as a test failure
This used to be the case a long time ago but was accidentally broken. Fix <github:nogrep> #4103 for ssl-opt.sh. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
+4
-2
@@ -530,6 +530,8 @@ run_test() {
|
|||||||
# terminate the server (and the proxy)
|
# terminate the server (and the proxy)
|
||||||
kill $SRV_PID
|
kill $SRV_PID
|
||||||
wait $SRV_PID
|
wait $SRV_PID
|
||||||
|
SRV_RET=$?
|
||||||
|
|
||||||
if [ -n "$PXY_CMD" ]; then
|
if [ -n "$PXY_CMD" ]; then
|
||||||
kill $PXY_PID >/dev/null 2>&1
|
kill $PXY_PID >/dev/null 2>&1
|
||||||
wait $PXY_PID
|
wait $PXY_PID
|
||||||
@@ -563,8 +565,8 @@ run_test() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check server exit code
|
# check server exit code
|
||||||
if [ $? != 0 ]; then
|
if [ $SRV_RET != 0 ]; then
|
||||||
fail "server fail"
|
fail "Server exited with status $SRV_RET"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user