forked from wolfSSL/wolfssl
fix resumte.test script warning
This commit is contained in:
@ -10,7 +10,7 @@ server_pid=$no_pid
|
|||||||
do_cleanup() {
|
do_cleanup() {
|
||||||
echo "in cleanup"
|
echo "in cleanup"
|
||||||
|
|
||||||
if [[ $server_pid != $no_pid ]]
|
if [ $server_pid != $no_pid ]
|
||||||
then
|
then
|
||||||
echo "killing server"
|
echo "killing server"
|
||||||
kill -9 $server_pid
|
kill -9 $server_pid
|
||||||
@ -42,7 +42,7 @@ done
|
|||||||
./examples/client/client -r -p $resume_port
|
./examples/client/client -r -p $resume_port
|
||||||
client_result=$?
|
client_result=$?
|
||||||
|
|
||||||
if [[ $client_result != 0 ]] ;
|
if [ $client_result != 0 ]
|
||||||
then
|
then
|
||||||
echo -e "client failed!"
|
echo -e "client failed!"
|
||||||
do_cleanup
|
do_cleanup
|
||||||
@ -52,7 +52,7 @@ fi
|
|||||||
wait $server_pid
|
wait $server_pid
|
||||||
server_result=$?
|
server_result=$?
|
||||||
|
|
||||||
if [[ $server_result != 0 ]] ;
|
if [ $server_result != 0 ]
|
||||||
then
|
then
|
||||||
echo -e "client failed!"
|
echo -e "client failed!"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user