From 52fc7e844c1f80c789bf707554c6f24175b0425e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 30 Oct 2024 17:57:38 +0100 Subject: [PATCH] Fix image ID query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read the full one, not the truncated one Signed-off-by: Miloslav Trmač --- test/system/010-images.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system/010-images.bats b/test/system/010-images.bats index 401298cb2a..020f94f97d 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -391,7 +391,7 @@ EOF # IMPORTANT! Use -2/-1 indices, not 0/1, because $SYSTEMD_IMAGE may be # present in store, and if it is it will precede $IMAGE. - CONTAINERS_STORAGE_CONF=$sconf run_podman images -a -n --format "{{.ID}} {{.Repository}}:{{.Tag}} {{.ReadOnly}}" + CONTAINERS_STORAGE_CONF=$sconf run_podman images -a -n --format "{{.Id}} {{.Repository}}:{{.Tag}} {{.ReadOnly}}" assert "${#lines[*]}" -ge 2 "at least 2 lines from 'podman images'" assert "${lines[-2]}" =~ ".*$IMAGE false" "image from readwrite store" assert "${lines[-1]}" =~ ".*$IMAGE true" "image from readonly store"