mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-30 14:46:23 +00:00
Fix indentation
This commit is contained in:
parent
a365addc0a
commit
ab5f7b40e0
|
@ -337,40 +337,40 @@ run_test() {
|
||||||
|
|
||||||
TIMES_LEFT=2
|
TIMES_LEFT=2
|
||||||
while [ $TIMES_LEFT -gt 0 ]; do
|
while [ $TIMES_LEFT -gt 0 ]; do
|
||||||
TIMES_LEFT=$(( $TIMES_LEFT - 1 ))
|
TIMES_LEFT=$(( $TIMES_LEFT - 1 ))
|
||||||
|
|
||||||
# run the commands
|
# run the commands
|
||||||
if [ -n "$PXY_CMD" ]; then
|
if [ -n "$PXY_CMD" ]; then
|
||||||
echo "$PXY_CMD" > $PXY_OUT
|
echo "$PXY_CMD" > $PXY_OUT
|
||||||
$PXY_CMD >> $PXY_OUT 2>&1 &
|
$PXY_CMD >> $PXY_OUT 2>&1 &
|
||||||
PXY_PID=$!
|
PXY_PID=$!
|
||||||
# assume proxy starts faster than server
|
# assume proxy starts faster than server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_osrv_dtls
|
check_osrv_dtls
|
||||||
echo "$SRV_CMD" > $SRV_OUT
|
echo "$SRV_CMD" > $SRV_OUT
|
||||||
provide_input | $SRV_CMD >> $SRV_OUT 2>&1 &
|
provide_input | $SRV_CMD >> $SRV_OUT 2>&1 &
|
||||||
SRV_PID=$!
|
SRV_PID=$!
|
||||||
wait_server_start
|
wait_server_start
|
||||||
|
|
||||||
echo "$CLI_CMD" > $CLI_OUT
|
echo "$CLI_CMD" > $CLI_OUT
|
||||||
eval "$CLI_CMD" >> $CLI_OUT 2>&1 &
|
eval "$CLI_CMD" >> $CLI_OUT 2>&1 &
|
||||||
wait_client_done
|
wait_client_done
|
||||||
|
|
||||||
# terminate the server (and the proxy)
|
# terminate the server (and the proxy)
|
||||||
kill $SRV_PID
|
kill $SRV_PID
|
||||||
wait $SRV_PID
|
wait $SRV_PID
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# retry only on timeouts
|
# retry only on timeouts
|
||||||
if grep '===CLIENT_TIMEOUT===' $CLI_OUT >/dev/null; then
|
if grep '===CLIENT_TIMEOUT===' $CLI_OUT >/dev/null; then
|
||||||
printf "RETRY "
|
printf "RETRY "
|
||||||
else
|
else
|
||||||
TIMES_LEFT=0
|
TIMES_LEFT=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# check if the client and server went at least to the handshake stage
|
# check if the client and server went at least to the handshake stage
|
||||||
|
|
Loading…
Reference in a new issue