mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Collapse errors down by using || in run_endpoint.sh
Makes for smaller more consistent coding Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25256)
This commit is contained in:
parent
e7e48e7f6c
commit
d2157bbb83
@ -36,43 +36,27 @@ if [ "$ROLE" == "client" ]; then
|
|||||||
|
|
||||||
case "$TESTCASE" in
|
case "$TESTCASE" in
|
||||||
"http3"|"transfer")
|
"http3"|"transfer")
|
||||||
echo -e "--verbose\n--parallel" >> $CURLRC
|
echo -e "--verbose\n--parallel" >> $CURLRC
|
||||||
generate_outputs_http3
|
generate_outputs_http3
|
||||||
dump_curlrc
|
dump_curlrc
|
||||||
SSL_CERT_FILE=/certs/ca.pem curl --config $CURLRC
|
SSL_CERT_FILE=/certs/ca.pem curl --config $CURLRC || exit 1
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"handshake")
|
"handshake")
|
||||||
OUTFILE=$(basename $REQUESTS)
|
OUTFILE=$(basename $REQUESTS)
|
||||||
echo -e "--verbose\n--http3\n-H \"Connection: close\"\n-o /downloads/$OUTFILE\n--url $REQUESTS" >> $CURLRC
|
echo -e "--verbose\n--http3\n-H \"Connection: close\"\n-o /downloads/$OUTFILE\n--url $REQUESTS" >> $CURLRC
|
||||||
dump_curlrc
|
dump_curlrc
|
||||||
SSL_CERT_FILE=/certs/ca.pem curl --config $CURLRC
|
SSL_CERT_FILE=/certs/ca.pem curl --config $CURLRC || exit 1
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"retry")
|
"retry")
|
||||||
OUTFILE=$(basename $REQUESTS)
|
OUTFILE=$(basename $REQUESTS)
|
||||||
SSL_CERT_FILE=/certs/ca.pem curl --verbose --http3 -o /downloads/$OUTFILE $REQUESTS
|
SSL_CERT_FILE=/certs/ca.pem curl --verbose --http3 -o /downloads/$OUTFILE $REQUESTS || exit 1
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"chacha20")
|
"chacha20")
|
||||||
OUTFILE=$(basename $REQUESTS)
|
OUTFILE=$(basename $REQUESTS)
|
||||||
SSL_CERT_FILE=/certs/ca.pem curl --verbose --tlsv1.3 --tls13-ciphers TLS_CHACHA20_POLY1305_SHA256 --http3 -o /downloads/$OUTFILE $REQUESTS
|
SSL_CERT_FILE=/certs/ca.pem curl --verbose --tlsv1.3 --tls13-ciphers TLS_CHACHA20_POLY1305_SHA256 --http3 -o /downloads/$OUTFILE $REQUESTS || exit 1
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user