Skip to content

Commit

Permalink
Fix image ID query
Browse files Browse the repository at this point in the history
Read the full one, not the truncated one

Signed-off-by: Miloslav Trmač <[email protected]>
  • Loading branch information
mtrmac committed Nov 26, 2024
1 parent 6eb0254 commit 52fc7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/system/010-images.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 52fc7e8

Please sign in to comment.