From b7cdcf17b9a8a244c87fdc3f66b787cf24f61315 Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Tue, 19 Aug 2025 19:05:06 +0800 Subject: [PATCH] CI: Add dedicated expected error message for runtime-rs Runtime-rs has its dedicated error message, we need handle it separately. Signed-off-by: Alex Lyn --- tests/integration/kubernetes/k8s-guest-pull-image.bats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/kubernetes/k8s-guest-pull-image.bats b/tests/integration/kubernetes/k8s-guest-pull-image.bats index 7d7bea89b4..b4805dfb65 100644 --- a/tests/integration/kubernetes/k8s-guest-pull-image.bats +++ b/tests/integration/kubernetes/k8s-guest-pull-image.bats @@ -178,6 +178,14 @@ setup() { # The pod should be failed because the image is too large to be pulled in the timeout assert_pod_fail "$pod_config" + + # runtime-rs has its dedicated error message, we need handle it separately. + if [ "${KATA_HYPERVISOR}" == "qemu-runtime-rs-coco-dev" ]; then + assert_logs_contain "$node" kata "$node_start_time" "agent create container" + assert_logs_contain "$node" kata "$node_start_time" "\[CDH\] \[ERROR\]: Image Pull error: Failed to pull image" + return + fi + assert_logs_contain "$node" kata "$node_start_time" 'createContainer failed' assert_logs_contain "$node" kata "$node_start_time" 'timeout' }