From 2123e1c4f43fca71bce00944ff4903f541c19fec Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Thu, 30 Apr 2026 18:36:31 +0800 Subject: [PATCH] tests: exclude TestContainerRestart from the cri-containerd test list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creating a new container in the same sandbox VM after the previous container has exited and been removed has never been supported by kata-containers (neither with the go-based nor the rust-based runtime). When the last container is removed the kata VM shuts down, so any attempt to start a new container in the same sandbox fails. This test exercises a use-case kata does not currently support, and it has never been part of the passing list for good reason. Mark it explicitly excluded with a comment so it is clear this is a deliberate omission rather than an oversight. Signed-off-by: Fabiano FidĂȘncio Signed-off-by: Alex Lyn --- tests/integration/cri-containerd/integration-tests.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/integration/cri-containerd/integration-tests.sh b/tests/integration/cri-containerd/integration-tests.sh index 8c8851cb64..56ef6955d5 100755 --- a/tests/integration/cri-containerd/integration-tests.sh +++ b/tests/integration/cri-containerd/integration-tests.sh @@ -687,8 +687,13 @@ function main() { info "containerd(cri): Running cri-integration" - - passing_test="TestContainerStats|TestContainerRestart|TestContainerListStatsWithIdFilter|TestContainerListStatsWithIdSandboxIdFilter|TestDuplicateName|TestImageLoad|TestImageFSInfo|TestSandboxCleanRemove" + # TestContainerRestart is excluded: creating a new container in the same + # sandbox VM after the previous container has exited and been removed has + # never been supported by kata-containers (neither with the go-based nor + # the rust-based runtime). The kata VM shuts down when its last container + # is removed, so any attempt to start a new container in the same sandbox + # fails. This test exercises a use-case kata does not currently support. + passing_test="TestContainerStats|TestContainerListStatsWithIdFilter|TestContainerListStatsWithIdSandboxIdFilter|TestDuplicateName|TestImageLoad|TestImageFSInfo|TestSandboxCleanRemove" if [[ "${KATA_HYPERVISOR}" == "clh-runtime-rs" || \ "${KATA_HYPERVISOR}" == "qemu" ]]; then