check return value of ping.test

This commit is contained in:
Jacob Barthelmeh
2016-04-14 14:42:01 -06:00
parent 993972162e
commit 1e766b23cf
4 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,8 @@ fi
# is our desired server there?
./scripts/ping.test $server 2
RESULT=$?
[ $RESULT -ne 0 ] && exit 0
# client test against the server
./examples/client/client -X -C -h $server -p 443 -g -A $ca

View File

@ -8,6 +8,8 @@ server=www.google.com
# is our desired server there?
./scripts/ping.test $server 2
RESULT=$?
[ $RESULT -ne 0 ] && exit 0
# client test against the server
./examples/client/client -X -C -h $server -p 443 -g -d

View File

@ -9,6 +9,8 @@ ca=certs/external/ca-globalsign-root-r2.pem
# is our desired server there?
./scripts/ping.test $server 2
RESULT=$?
[ $RESULT -ne 0 ] && exit 0
# client test against the server
./examples/client/client -X -C -h $server -p 443 -A $ca -g -o

View File

@ -24,6 +24,6 @@ esac
# is our desired server there?
ping $PINGSW $tries $server
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 0
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 1
exit 0