diff --git a/tests/integration/kubernetes/k8s-guest-pull-image.bats b/tests/integration/kubernetes/k8s-guest-pull-image.bats index 7d7bea89b4..eabbe09985 100644 --- a/tests/integration/kubernetes/k8s-guest-pull-image.bats +++ b/tests/integration/kubernetes/k8s-guest-pull-image.bats @@ -178,6 +178,15 @@ 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 + pod_name="large-image-pod" + kubectl logs "$pod_name" | grep "agent create container" + kubectl logs "$pod_name" | grep "timeout" + return + fi + assert_logs_contain "$node" kata "$node_start_time" 'createContainer failed' assert_logs_contain "$node" kata "$node_start_time" 'timeout' }