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-08-19 19:05:06 +08:00
parent 1e27b5bbd4
commit d1d62dc984

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-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'
}