mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: try to check stats only when file is present
This commit is contained in:
@@ -175,10 +175,11 @@ $DOCKER cp test_ocserv:/tmp/disconnect/ok ./
|
||||
if ! test -f ./ok;then
|
||||
echo "Don't know if stats were received"
|
||||
ret=77
|
||||
fi
|
||||
else
|
||||
echo -n "stats: "
|
||||
echo `cat ./ok`
|
||||
rm -f ./ok
|
||||
fi
|
||||
|
||||
$DOCKER stop test_ocserv
|
||||
$DOCKER rm test_ocserv
|
||||
|
||||
@@ -175,10 +175,11 @@ $DOCKER cp test_unix:/tmp/disconnect/ok ./
|
||||
if ! test -f ./ok;then
|
||||
echo "Don't know if stats were received"
|
||||
ret=77
|
||||
fi
|
||||
else
|
||||
echo -n "stats: "
|
||||
echo `cat ./ok`
|
||||
rm -f ./ok
|
||||
fi
|
||||
|
||||
$DOCKER stop test_unix
|
||||
$DOCKER rm test_unix
|
||||
|
||||
Reference in New Issue
Block a user