diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-07-05 13:26:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 13:26:45 +0000 |
commit | 02179c5686d74ff4d73b022eec305de9415bd448 (patch) | |
tree | f9336771915eefda935cbd7204254766b2be56c2 /test | |
parent | 13479d457d34496b43027bc1d71cdb0891a8b738 (diff) | |
parent | b9aa4755559d50d39bee3f571734a1e17c0f08b2 (diff) | |
download | podman-02179c5686d74ff4d73b022eec305de9415bd448.tar.gz podman-02179c5686d74ff4d73b022eec305de9415bd448.tar.bz2 podman-02179c5686d74ff4d73b022eec305de9415bd448.zip |
Merge pull request #14830 from vrothberg/fix-14761
Sync: handle exit file
Diffstat (limited to 'test')
-rw-r--r-- | test/system/130-kill.bats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/130-kill.bats b/test/system/130-kill.bats index a9456e03c..96b633a42 100644 --- a/test/system/130-kill.bats +++ b/test/system/130-kill.bats @@ -130,4 +130,14 @@ load helpers is "$output" $cname } +@test "podman kill - concurrent stop" { + # 14761 - concurrent kill/stop must record the exit code + random_name=$(random_string 10) + run_podman run -d --replace --name=$random_name alpine sh -c "trap 'echo Received SIGTERM, ignoring' SIGTERM; echo READY; while :; do sleep 0.2; done" + $PODMAN stop -t 1 $random_name & + run_podman kill $random_name + run_podman wait $random_name + run_podman rm -f $random_name +} + # vim: filetype=sh |