diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-21 14:29:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 14:29:40 +0200 |
commit | 5abb38238d56f87e6fe277939b0fcccb78bcda42 (patch) | |
tree | 31c27ff040037d7051af67ebc41d958bed7027a1 /test | |
parent | 712267ee20b7cf4a8bbd73a4f13608f48ffe962b (diff) | |
parent | c1f04a024a3d48e39ac5bfc82af7ba9fec04539c (diff) | |
download | podman-5abb38238d56f87e6fe277939b0fcccb78bcda42.tar.gz podman-5abb38238d56f87e6fe277939b0fcccb78bcda42.tar.bz2 podman-5abb38238d56f87e6fe277939b0fcccb78bcda42.zip |
Merge pull request #15004 from vrothberg/fix-duplicates
podman-remote pull: fix duplicate progress outputs
Diffstat (limited to 'test')
-rw-r--r-- | test/system/001-basic.bats | 11 |
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 |