From 0dce3f4fecc994c147ad9ba815a0f5014f327e88 Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Tue, 19 Dec 2023 19:10:51 +0900 Subject: [PATCH] Testing: Improve application signal handling test coverage (#2052) --- .github/workflows/test-only.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index d6962098..666fe051 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -118,7 +118,8 @@ jobs: sleep 3 # invert the check (it should be not 0/not running) 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`" if [ $? -ne 0 ] then @@ -138,7 +139,7 @@ jobs: sleep 3 # invert the check (it should be not 0/not running) docker ps - docker logs sig-test + docker logs sig-test | grep 'Shutdown: Got Signal - SIGTERM' || exit 1 test -z "`docker ps|grep sig-test`" if [ $? -ne 0 ] then