mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: satisfy latest docker's restrictions
This commit is contained in:
@@ -170,15 +170,15 @@ rm -f ./not-ok
|
|||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
rm -f ./ok
|
rm -f ./tmp-full/ok
|
||||||
$DOCKER cp test_ocserv:/tmp/disconnect/ok ./
|
$DOCKER cp test_ocserv:/tmp/disconnect/ok ./tmp-full/
|
||||||
if ! test -f ./ok;then
|
if ! test -f ./tmp-full/ok;then
|
||||||
echo "Don't know if stats were received"
|
echo "Don't know if stats were received"
|
||||||
ret=77
|
ret=77
|
||||||
else
|
else
|
||||||
echo -n "stats: "
|
echo -n "stats: "
|
||||||
echo `cat ./ok`
|
echo `cat ./tmp-full/ok`
|
||||||
rm -f ./ok
|
rm -rf ./tmp-full/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DOCKER stop test_ocserv
|
$DOCKER stop test_ocserv
|
||||||
|
|||||||
@@ -170,15 +170,15 @@ rm -f ./not-ok
|
|||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
rm -f ./ok
|
rm -f ./tmp-unix/ok
|
||||||
$DOCKER cp test_unix:/tmp/disconnect/ok ./
|
$DOCKER cp test_ocserv:/tmp/disconnect/ok ./tmp-unix/
|
||||||
if ! test -f ./ok;then
|
if ! test -f ./tmp-unix/ok;then
|
||||||
echo "Don't know if stats were received"
|
echo "Don't know if stats were received"
|
||||||
ret=77
|
ret=77
|
||||||
else
|
else
|
||||||
echo -n "stats: "
|
echo -n "stats: "
|
||||||
echo `cat ./ok`
|
echo `cat ./tmp-unix/ok`
|
||||||
rm -f ./ok
|
rm -rf ./tmp-unix/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DOCKER stop test_unix
|
$DOCKER stop test_unix
|
||||||
|
|||||||
Reference in New Issue
Block a user