diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-10 12:52:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 12:52:30 +0200 |
commit | c47f714fe8193cd1ac90a9359da3ef177a6db7e1 (patch) | |
tree | 1bb873259e76f27c9fb65139af052f22dd34a8c9 /test/system | |
parent | 0a653153ef8e417def0ae341004df36a23761991 (diff) | |
parent | 48d26a893e0adcf5f9b339a675bfffe688a9ea22 (diff) | |
download | podman-c47f714fe8193cd1ac90a9359da3ef177a6db7e1.tar.gz podman-c47f714fe8193cd1ac90a9359da3ef177a6db7e1.tar.bz2 podman-c47f714fe8193cd1ac90a9359da3ef177a6db7e1.zip |
Merge pull request #11880 from rhatdan/stoptimeout
Warn if podman stop timeout expires that sigkill was sent
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/050-stop.bats | 7 |
1 files changed, 7 insertions, 0 deletions
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 |