diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-15 12:38:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 12:38:40 +0100 |
commit | 9fa09a83b30c5d9300eb40b3d50b405153b37f7a (patch) | |
tree | b94acbbe3111af3b574c8d8a43f6880039502231 /test/system/010-images.bats | |
parent | 4eb9c28433f8aa1827f844881efb1ae1d15b0860 (diff) | |
parent | a4c24719445777292193fa2c7a325a1757096fdd (diff) | |
download | podman-9fa09a83b30c5d9300eb40b3d50b405153b37f7a.tar.gz podman-9fa09a83b30c5d9300eb40b3d50b405153b37f7a.tar.bz2 podman-9fa09a83b30c5d9300eb40b3d50b405153b37f7a.zip |
Merge pull request #8325 from edsantiago/bats
system tests: various
Diffstat (limited to 'test/system/010-images.bats')
-rw-r--r-- | test/system/010-images.bats | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats index 900a24368..98bb0cc57 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -3,10 +3,18 @@ load helpers @test "podman images - basic output" { - run_podman images -a + headings="REPOSITORY *TAG *IMAGE ID *CREATED *SIZE" - is "${lines[0]}" "REPOSITORY *TAG *IMAGE ID *CREATED *SIZE" "header line" + run_podman images -a + is "${lines[0]}" "$headings" "header line" is "${lines[1]}" "$PODMAN_TEST_IMAGE_REGISTRY/$PODMAN_TEST_IMAGE_USER/$PODMAN_TEST_IMAGE_NAME *$PODMAN_TEST_IMAGE_TAG *[0-9a-f]\+" "podman images output" + + # 'podman images' should emit headings even if there are no images + # (but --root only works locally) + if ! is_remote; then + run_podman --root ${PODMAN_TMPDIR}/nothing-here-move-along images + is "$output" "$headings" "'podman images' emits headings even w/o images" + fi } @test "podman images - custom formats" { |