From 3b6510da68c4c72862aaae36b8cc77f4e165a434 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 15 Dec 2021 13:06:01 +0100 Subject: kill: fix output Make sure that `kill -a` is printing the IDs of killed containers. Previously, it was only printing empty lines. Signed-off-by: Valentin Rothberg --- test/system/130-kill.bats | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/system/130-kill.bats') diff --git a/test/system/130-kill.bats b/test/system/130-kill.bats index 1ff3a7b61..a9456e03c 100644 --- a/test/system/130-kill.bats +++ b/test/system/130-kill.bats @@ -116,4 +116,18 @@ load helpers is "$output" "Error: valid signals are 1 through 64" "podman create" } +@test "podman kill - print IDs or raw input" { + # kill -a must print the IDs + run_podman run --rm -d $IMAGE top + ctrID="$output" + run_podman kill -a + is "$output" "$ctrID" + + # kill $input must print $input + cname=$(random_string) + run_podman run --rm -d --name $cname $IMAGE top + run_podman kill $cname + is "$output" $cname +} + # vim: filetype=sh -- cgit v1.2.3-54-g00ecf