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 <alex.lyn@antgroup.com>
This commit is contained in:
Alex Lyn
2025-10-10 14:36:47 +08:00
parent 60022c9556
commit e539432a91

View File

@@ -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-coco-dev-runtime-rs" ]; then
pod_name="large-image-pod"
kubectl describe "pod/$pod_name" | grep "agent create container"
kubectl describe "pod/$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'
}