aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-07-21 09:58:18 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-07-21 10:04:45 +0200
commitc1f04a024a3d48e39ac5bfc82af7ba9fec04539c (patch)
treee8b13d72b4e930c2b8d19e1c65dc4eb1575c917d /test
parent0de7e4662e6d574fe382714cb6664a4519771f88 (diff)
downloadpodman-c1f04a024a3d48e39ac5bfc82af7ba9fec04539c.tar.gz
podman-c1f04a024a3d48e39ac5bfc82af7ba9fec04539c.tar.bz2
podman-c1f04a024a3d48e39ac5bfc82af7ba9fec04539c.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