summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-07-21 09:58:18 +0200
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 13:51:56 -0400
commitdc1dc46006f890f02d9e61ae5ce9caf1a7a2cd60 (patch)
treed12a66321949306ae43c9e609fecdd775f706f2f /test
parent2350ef9dd4c0ffc7c92583b33f63da0bc9502bba (diff)
downloadpodman-dc1dc46006f890f02d9e61ae5ce9caf1a7a2cd60.tar.gz
podman-dc1dc46006f890f02d9e61ae5ce9caf1a7a2cd60.tar.bz2
podman-dc1dc46006f890f02d9e61ae5ce9caf1a7a2cd60.zip
podman-remote pull: fix duplicate progress outputs
By vendoring the fixes from containers/image. Also add a test (thanks @edsantiago) to make sure we won't regress in the future again. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/001-basic.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index 0d2a99d4b..cf37fc07c 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -61,8 +61,19 @@ function setup() {
}
@test "podman can pull an image" {
+ run_podman rmi -a
run_podman pull $IMAGE
+ # Regression test for https://github.com/containers/image/pull/1615
+ # Make sure no progress lines are duplicated
+ local -A line_seen
+ for line in "${lines[@]}"; do
+ if [[ -n "${line_seen[$line]}" ]]; then
+ die "duplicate podman-pull output line: $line"
+ fi
+ line_seen[$line]=1
+ done
+
# Also make sure that the tag@digest syntax is supported.
run_podman inspect --format "{{ .Digest }}" $IMAGE
digest=$output