summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-11-18 09:09:53 -0700
committerJhon Honce <jhonce@redhat.com>2020-12-02 10:50:37 -0700
commit2a02833e9fe533d3e3c6bb05edeec769638a18af (patch)
treed2fbf3b4f3bf69deb8488e8bc52e6e0eb5d62e38 /test/system
parente82ec90007af82ee297eec0cb3973801cd383264 (diff)
downloadpodman-2a02833e9fe533d3e3c6bb05edeec769638a18af.tar.gz
podman-2a02833e9fe533d3e3c6bb05edeec769638a18af.tar.bz2
podman-2a02833e9fe533d3e3c6bb05edeec769638a18af.zip
Fix `podman images...` missing headers in table templates
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/010-images.bats13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats
index ee6da30ec..76caf282b 100644
--- a/test/system/010-images.bats
+++ b/test/system/010-images.bats
@@ -199,9 +199,16 @@ Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z
local format=$2
run_podman images --sort repository --format "$format"
- _check_line 0 ${aaa_name} ${aaa_tag}
- _check_line 1 "${PODMAN_TEST_IMAGE_REGISTRY}/${PODMAN_TEST_IMAGE_USER}/${PODMAN_TEST_IMAGE_NAME}" "${PODMAN_TEST_IMAGE_TAG}"
- _check_line 2 ${zzz_name} ${zzz_tag}
+
+ line_no=0
+ if [[ $format == table* ]]; then
+ # skip headers from table command
+ line_no=1
+ fi
+
+ _check_line $line_no ${aaa_name} ${aaa_tag}
+ _check_line $((line_no+1)) "${PODMAN_TEST_IMAGE_REGISTRY}/${PODMAN_TEST_IMAGE_USER}/${PODMAN_TEST_IMAGE_NAME}" "${PODMAN_TEST_IMAGE_TAG}"
+ _check_line $((line_no+2)) ${zzz_name} ${zzz_tag}
}
# Begin the test: tag $IMAGE with both the given names