From 48d26a893e0adcf5f9b339a675bfffe688a9ea22 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 29 Sep 2021 10:03:46 -0400 Subject: Warn if podman stop timeout expires that sigkill was sent Note: the Warning message will not come to podman-remote. It would be difficult to plumb, and not really worth the effort. Fixes: https://github.com/containers/podman/issues/11854 Signed-off-by: Daniel J Walsh --- test/system/050-stop.bats | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/system') diff --git a/test/system/050-stop.bats b/test/system/050-stop.bats index d809507a5..e049da518 100644 --- a/test/system/050-stop.bats +++ b/test/system/050-stop.bats @@ -166,4 +166,11 @@ load helpers is "$output" "137" "Exit code of killed container" } +@test "podman stop -t 1 Generate warning" { + skip_if_remote "warning only happens on server side" + run_podman run --rm --name stopme -d $IMAGE sleep 100 + run_podman stop -t 1 stopme + is "$output" ".*StopSignal SIGTERM failed to stop container stopme in 1 seconds, resorting to SIGKILL" "stopping container should print warning" +} + # vim: filetype=sh -- cgit v1.2.3-54-g00ecf