From 59cd8a0cfa468bf5ad493ddedfef71480b6250ec Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 18 Jun 2020 15:00:22 +0200 Subject: unflake rmi tests Make sure to always get the older images that previously committed one depends on. Signed-off-by: Valentin Rothberg --- test/e2e/rmi_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/e2e/rmi_test.go') diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go index b17c03d63..b8cbdc792 100644 --- a/test/e2e/rmi_test.go +++ b/test/e2e/rmi_test.go @@ -137,12 +137,12 @@ var _ = Describe("Podman rmi", func() { Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(1)) - session = podmanTest.PodmanNoCache([]string{"images", "-q", "-a"}) + session = podmanTest.PodmanNoCache([]string{"images", "--sort", "created", "--format", "{{.Id}}", "--all"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(2), "Output from 'podman images -q -a':'%s'", session.Out.Contents()) - untaggedImg := session.OutputToStringArray()[0] + untaggedImg := session.OutputToStringArray()[1] session = podmanTest.PodmanNoCache([]string{"rmi", "-f", untaggedImg}) session.WaitWithDefaultTimeout() -- cgit v1.2.3-54-g00ecf