tests: try to check stats only when file is present

This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-01 23:08:12 +01:00
parent d7ec6a168e
commit 5019c4cebe
2 changed files with 8 additions and 6 deletions

View File

@@ -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
else
echo -n "stats: "
echo `cat ./ok`
rm -f ./ok
fi
echo -n "stats: "
echo `cat ./ok`
rm -f ./ok
$DOCKER stop test_ocserv
$DOCKER rm test_ocserv

View File

@@ -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
else
echo -n "stats: "
echo `cat ./ok`
rm -f ./ok
fi
echo -n "stats: "
echo `cat ./ok`
rm -f ./ok
$DOCKER stop test_unix
$DOCKER rm test_unix