From 3e874d0eaf4b03fe12631190fed225398c607dcd Mon Sep 17 00:00:00 2001 From: Manuel Huber Date: Fri, 8 May 2026 17:29:06 +0000 Subject: [PATCH] tests: accept EROFS empty-image rootfs rejection The empty-image test expects pod creation to fail. With an EROFS snapshot that has a disk-backed rwlayer, runtime-rs can still reject that pod with the existing unsupported mount-count error. With default_size=0, there is no rwlayer mount. The same negative test can instead reach the bind rootfs shape produced for the empty active snapshot, which runtime-rs rejects as an unsupported rootfs mount. Accept both messages so the test covers the expected failure for both EROFS rwlayer modes. Assisted-by: OpenAI Codex Signed-off-by: Manuel Huber --- tests/integration/kubernetes/k8s-empty-image.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/k8s-empty-image.bats b/tests/integration/kubernetes/k8s-empty-image.bats index 1d451b31cf..02b0a4f96e 100644 --- a/tests/integration/kubernetes/k8s-empty-image.bats +++ b/tests/integration/kubernetes/k8s-empty-image.bats @@ -43,7 +43,7 @@ setup() { kubectl create -f "${yaml_file}" local -r command="kubectl describe pod/${pod_name} | grep -E \ - 'the file sleep was not found|\[CDH\] \[ERROR\]: Image Pull error|ENOENT|unsupported rootfs mounts count 2'" + 'the file sleep was not found|\[CDH\] \[ERROR\]: Image Pull error|ENOENT|unsupported rootfs mounts count 2|unsupported rootfs Mount'" info "Waiting ${wait_time} seconds for: ${command}" waitForProcess "${wait_time}" "${sleep_time}" "${command}" >/dev/null 2>/dev/null }