From da1fb8eb1e29653fac6ec7541c38aa3da5cdef78 Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Mon, 18 Aug 2025 15:04:49 +0800 Subject: [PATCH] CI: match capitalized pull image error exactly Update grep pattern from "failed to pull image" to "Failed to pull image" to ensure an exact, case-sensitive match when parsing logs. This prevents unintended matches to lowercase variants and aligns with the actual log message format in the current system. Signed-off-by: Alex Lyn --- tests/integration/kubernetes/k8s-guest-pull-image.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/k8s-guest-pull-image.bats b/tests/integration/kubernetes/k8s-guest-pull-image.bats index acbf2c3ab4..7d7bea89b4 100644 --- a/tests/integration/kubernetes/k8s-guest-pull-image.bats +++ b/tests/integration/kubernetes/k8s-guest-pull-image.bats @@ -84,7 +84,7 @@ setup() { # The pod should be failed because the unpacked image size is larger than the memory size in the guest. assert_pod_fail "$pod_config" - assert_logs_contain "$node" kata "$node_start_time" "failed to pull image" + assert_logs_contain "$node" kata "$node_start_time" "Failed to pull image" } @test "Test we can pull an image inside the guest using trusted storage" {