Skip to content

Commit

Permalink
runc kill: add kill -a test case
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Apr 12, 2023
1 parent e42c219 commit e9cdc73
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/kill.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,15 @@ function teardown() {
runc delete test_busybox
[ "$status" -eq 0 ]
}

@test "kill --all KILL detached busybox" {
# kill --all requires working cgroups.
[ $EUID -ne 0 ] && requires rootless_cgroup

runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
[ "$status" -eq 0 ]

runc kill -a test_busybox KILL
[ "$status" -eq 0 ]
wait_for_container 10 1 test_busybox stopped
}

0 comments on commit e9cdc73

Please sign in to comment.