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 committed by stevenhorsman
parent 333ae41119
commit b7cdcf17b9

View File

@ -178,6 +178,14 @@ setup() {
# The pod should be failed because the image is too large to be pulled in the timeout # The pod should be failed because the image is too large to be pulled in the timeout
assert_pod_fail "$pod_config" 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" 'createContainer failed'
assert_logs_contain "$node" kata "$node_start_time" 'timeout' assert_logs_contain "$node" kata "$node_start_time" 'timeout'
} }