From ea8e61e4eb6b5c02cf5f9e1e20ba703c9196bc31 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 18 Jun 2020 09:26:07 -0700 Subject: Fixes #6670 * Sort images for -q option, removing duplicate id's * Sort images for --format json Signed-off-by: Jhon Honce --- test/e2e/images_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index 0ee7260c2..b6391cebf 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -296,6 +296,15 @@ WORKDIR /test sortValueTest("id", 125, "badvalue") }) + It("test for issue #6670", func() { + expected := podmanTest.Podman([]string{"images", "--sort", "created", "--format", "{{.ID}}", "-q"}) + expected.WaitWithDefaultTimeout() + + actual := podmanTest.Podman([]string{"images", "--sort", "created", "-q"}) + actual.WaitWithDefaultTimeout() + Expect(expected.Out).Should(Equal(actual.Out)) + }) + It("podman images --all flag", func() { podmanTest.RestoreAllArtifacts() dockerfile := `FROM docker.io/library/alpine:latest -- cgit v1.2.3-54-g00ecf