diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-08-24 06:13:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 06:13:56 -0400 |
commit | e20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d (patch) | |
tree | 7c32b2fb385ddc6a7296edd6609f9526d8df20c3 /test/system | |
parent | eb9d731c68266cd0953b0669f2bc6340aa8df288 (diff) | |
parent | 70801b3d714b067d64744697433c5841926dad4d (diff) | |
download | podman-e20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d.tar.gz podman-e20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d.tar.bz2 podman-e20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d.zip |
Merge pull request #11312 from vrothberg/fix-11304
generate systemd: custom stop signal
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/250-systemd.bats | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index ee951ff21..37e5fa2f9 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -125,4 +125,17 @@ function service_cleanup() { service_cleanup } +@test "podman generate systemd - stop-signal" { + cname=$(random_string) + run_podman create --name $cname --stop-signal=42 $IMAGE + run_podman generate systemd --new $cname + is "$output" ".*KillSignal=42.*" "KillSignal is set" + + # Regression test for #11304: systemd wants a custom stop-signal. + run_podman rm -f $cname + run_podman create --name $cname --systemd=true $IMAGE systemd + run_podman generate systemd --new $cname + is "$output" ".*KillSignal=37.*" "KillSignal is set" +} + # vim: filetype=sh |