We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e42c219 commit 53a2b6aCopy full SHA for 53a2b6a
1 file changed
tests/integration/kill.bats
@@ -29,3 +29,19 @@ function teardown() {
29
runc delete test_busybox
30
[ "$status" -eq 0 ]
31
}
32
+
33
+@test "kill --all KILL detached busybox" {
34
+ if [ $EUID -ne 0 ]; then
35
+ # kill --all requires working cgroups.
36
+ requires rootless_cgroup
37
+ # rootless containers have no cgroups configured by default.
38
+ set_cgroups_path
39
+ fi
40
41
+ runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
42
+ [ "$status" -eq 0 ]
43
44
+ runc kill -a test_busybox KILL
45
46
+ wait_for_container 10 1 test_busybox stopped
47
+}
0 commit comments