diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-18 15:00:22 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-06-18 15:00:22 +0200 |
commit | 59cd8a0cfa468bf5ad493ddedfef71480b6250ec (patch) | |
tree | 5b97cff25167aa22522f067eed0e5076a18a6869 | |
parent | 6472b44c3420fbba04dc3b5fe96be6576ee43e61 (diff) | |
download | podman-59cd8a0cfa468bf5ad493ddedfef71480b6250ec.tar.gz podman-59cd8a0cfa468bf5ad493ddedfef71480b6250ec.tar.bz2 podman-59cd8a0cfa468bf5ad493ddedfef71480b6250ec.zip |
unflake rmi tests
Make sure to always get the older images that previously committed one
depends on.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
-rw-r--r-- | test/e2e/rmi_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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() |