|
|
@ -118,7 +118,8 @@ jobs:
|
|
|
|
sleep 3
|
|
|
|
sleep 3
|
|
|
|
# invert the check (it should be not 0/not running)
|
|
|
|
# invert the check (it should be not 0/not running)
|
|
|
|
docker ps
|
|
|
|
docker ps
|
|
|
|
docker logs sig-test
|
|
|
|
# check signal catch(STDOUT) log
|
|
|
|
|
|
|
|
docker logs sig-test | grep 'Shutdown: Got Signal - SIGINT' || exit 1
|
|
|
|
test -z "`docker ps|grep sig-test`"
|
|
|
|
test -z "`docker ps|grep sig-test`"
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
then
|
|
|
@ -138,7 +139,7 @@ jobs:
|
|
|
|
sleep 3
|
|
|
|
sleep 3
|
|
|
|
# invert the check (it should be not 0/not running)
|
|
|
|
# invert the check (it should be not 0/not running)
|
|
|
|
docker ps
|
|
|
|
docker ps
|
|
|
|
docker logs sig-test
|
|
|
|
docker logs sig-test | grep 'Shutdown: Got Signal - SIGTERM' || exit 1
|
|
|
|
test -z "`docker ps|grep sig-test`"
|
|
|
|
test -z "`docker ps|grep sig-test`"
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|