diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-12 11:10:55 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-14 15:04:14 +0100 |
commit | 85b7374491e842c44bec3ce5ec800794cae10295 (patch) | |
tree | c45fa8df8796b3741094f796f56b66e9d4388e60 /test/system/130-kill.bats | |
parent | 156ce5cd7d6f0f1514d263a74ffe3dd42f7c7caf (diff) | |
download | podman-85b7374491e842c44bec3ce5ec800794cae10295.tar.gz podman-85b7374491e842c44bec3ce5ec800794cae10295.tar.bz2 podman-85b7374491e842c44bec3ce5ec800794cae10295.zip |
add pkg/signal
Add pkg/signal to deal with parts of signal processing and translating
signals from string to numeric representations. The code has been
copied from docker/docker (and attributed with the copyright) but been
reduced to only what libpod needs (on Linux).
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system/130-kill.bats')
-rw-r--r-- | test/system/130-kill.bats | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/system/130-kill.bats b/test/system/130-kill.bats index aae7f114f..5e098d754 100644 --- a/test/system/130-kill.bats +++ b/test/system/130-kill.bats @@ -70,10 +70,10 @@ load helpers for s in ${bad_signal_names[@]}; do # 'nosuchcontainer' is fine: podman should bail before it gets there run_podman 125 kill -s $s nosuchcontainer - is "$output" "Error: Invalid signal: $s" "Error from kill -s $s" + is "$output" "Error: invalid signal: $s" "Error from kill -s $s" run_podman 125 pod kill -s $s nosuchpod - is "$output" "Error: Invalid signal: $s" "Error from pod kill -s $s" + is "$output" "Error: invalid signal: $s" "Error from pod kill -s $s" done # Special case: these too are thrown by docker/signal.ParseSignal(), @@ -82,7 +82,7 @@ load helpers local -a bad_dash_signals=(-0 -SIGBADSIG -SIG -BADSIG -) for s in ${bad_dash_signals[@]}; do run_podman 125 kill -s $s nosuchcontainer - is "$output" "Error: Invalid signal: ${s##-}" "Error from kill -s $s" + is "$output" "Error: invalid signal: ${s##-}" "Error from kill -s $s" done # This error (signal out of range) is thrown by our wrapper |