Test whether the statistics are exported to disconnect script.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-04-28 17:36:02 +02:00
parent 2a0cc77c2e
commit b8bfbde41d
5 changed files with 29 additions and 5 deletions
+13 -2
View File
@@ -124,9 +124,20 @@ fi
# stop
#fi
kill $PID
sleep 3
#check whether /tmp/disconnect/ok was created
rm -f ./ok
$DOCKER cp test_ocserv:/tmp/disconnect/ok ./
if ! test -f ./ok;then
echo "Did not get stats"
stop
fi
rm -f ./ok
$DOCKER stop test_ocserv
$DOCKER rm test_ocserv
kill $PID
exit 0