tests: kill politely openconnect in all docker tests

This commit is contained in:
Nikos Mavrogiannopoulos
2015-12-07 14:40:36 +01:00
parent 4fad865864
commit 9979b8cde0
6 changed files with 28 additions and 28 deletions

View File

@@ -88,13 +88,13 @@ rm -f pass-${TMP}.tmp
# The client IP depends on the username so it shouldn't change.
ping -w 5 192.168.237.1
if test $? != 0;then
kill $PID
kill -INT $PID
echo "Cannot ping ocserv"
stop
fi
retrieve_user_info test
kill $PID
kill -INT $PID
$DOCKER stop $IMAGE_NAME
$DOCKER rm $IMAGE_NAME