mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
Test whether the statistics are exported to disconnect script.
This commit is contained in:
+13
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user