summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-25 21:32:20 +0100
committerGitHub <noreply@github.com>2020-02-25 21:32:20 +0100
commit6c5591ed9d89494e166ef0ffa8a1ff36333d1a1b (patch)
tree485ed1b7ce86431008b4ff47709982a23dff6639 /test/system
parent6a03a9a538804b406c34e75a2333045b9f7db7d5 (diff)
parent80da73f13c69fa84055a317cb59f3a5eb1ffa09c (diff)
downloadpodman-6c5591ed9d89494e166ef0ffa8a1ff36333d1a1b.tar.gz
podman-6c5591ed9d89494e166ef0ffa8a1ff36333d1a1b.tar.bz2
podman-6c5591ed9d89494e166ef0ffa8a1ff36333d1a1b.zip
Merge pull request #3901 from cevich/support_f31
Cirrus: Support testing with F31
Diffstat (limited to 'test/system')
-rw-r--r--test/system/130-kill.bats12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/system/130-kill.bats b/test/system/130-kill.bats
index 5e098d754..8085b171e 100644
--- a/test/system/130-kill.bats
+++ b/test/system/130-kill.bats
@@ -8,8 +8,16 @@ load helpers
@test "podman kill - test signal handling in containers" {
# Start a container that will handle all signals by emitting 'got: N'
local -a signals=(1 2 3 4 5 6 8 10 12 13 14 15 16 20 21 22 23 24 25 26 64)
- run_podman run -d $IMAGE sh -c "for i in ${signals[*]}; do trap \"echo got: \$i\" \$i; done; echo READY; while ! test -e /stop; do sleep 0.05; done;echo DONE"
- cid="$output"
+ # The --default-signal option not available in busybox implementation of 'env' in $IMAGE
+ # needed here to ensure handling of SIGINT inside container uses the default handler
+ _IMAGE=quay.io/libpod/fedora-minimal:latest
+ run_podman run -d $_IMAGE env --default-signal sh -c \
+ "for i in ${signals[*]}; do trap \"echo got: \$i\" \$i; done;
+ echo READY;
+ while ! test -e /stop; do sleep 0.05; done;
+ echo DONE"
+ # Ignore output regarding pulling/processing container images
+ cid=$(echo "$output" | tail -1)
# Run 'logs -f' on that container, but run it in the background with
# redirection to a named pipe from which we (foreground job) read