diff --git a/tests/integration/pidfd-socket.bats b/tests/integration/pidfd-socket.bats index 9c10f26e1..5dbd8660b 100644 --- a/tests/integration/pidfd-socket.bats +++ b/tests/integration/pidfd-socket.bats @@ -48,12 +48,10 @@ function teardown() { # Use sub-cgroup to ensure that exec process has been killed test_pidfd_cgroup_path=$(get_cgroup_path "pids") mkdir "${test_pidfd_cgroup_path}/exec_pidfd" - [ "$status" -eq 0 ] setup_pidfd_kill "SIGKILL" __runc exec -d --cgroup "pids:exec_pidfd" --pid-file "exec_pid.txt" --pidfd-socket "${PIDFD_SOCKET}" test_pidfd sleep 1d - [ "$status" -eq 0 ] exec_pid=$(cat exec_pid.txt) exec_pid_in_cgroup=$(cat "${test_pidfd_cgroup_path}/exec_pidfd/cgroup.procs") @@ -79,12 +77,10 @@ function teardown() { # Use sub-cgroup to ensure that exec process has been killed test_pidfd_cgroup_path=$(get_cgroup_path "pids") mkdir "${test_pidfd_cgroup_path}/exec_pidfd" - [ "$status" -eq 0 ] setup_pidfd_kill "SIGKILL" __runc exec -d --cgroup "exec_pidfd" --pid-file "exec_pid.txt" --pidfd-socket "${PIDFD_SOCKET}" test_pidfd sleep 1d - [ "$status" -eq 0 ] exec_pid=$(cat exec_pid.txt) exec_pid_in_cgroup=$(cat "${test_pidfd_cgroup_path}/exec_pidfd/cgroup.procs") diff --git a/tests/integration/update.bats b/tests/integration/update.bats index dee7250e2..29d36fdfa 100644 --- a/tests/integration/update.bats +++ b/tests/integration/update.bats @@ -320,7 +320,6 @@ EOF } } EOF - [ "$status" -eq 0 ] runc update -r "$BATS_RUN_TMPDIR"/runc-cgroups-integration-test.json test_update [ "$status" -eq 0 ]