mirror of https://github.com/containers/podman.git
Fix image ID query
Read the full one, not the truncated one Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
11ee6c4f90
commit
7c40e85968
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue