aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-11-18 09:09:53 -0700
committerMatthew Heon <mheon@redhat.com>2020-12-07 15:14:49 -0500
commit3f6197e3d2a55ab843dee7be922706a079d875a4 (patch)
tree08edd76b705389e8ee9c13e9bfd6e8b7ac006371 /test/system
parentfa9ad1671e9b3433c6b5fb0c393cebca70a0811b (diff)
downloadpodman-3f6197e3d2a55ab843dee7be922706a079d875a4.tar.gz
podman-3f6197e3d2a55ab843dee7be922706a079d875a4.tar.bz2
podman-3f6197e3d2a55ab843dee7be922706a079d875a4.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 98bb0cc57..7379e5571 100644
--- a/test/system/010-images.bats
+++ b/test/system/010-images.bats
@@ -197,9 +197,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