mirror of
https://github.com/containers/podman
synced 2024-10-19 16:54:07 +00:00
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>
This commit is contained in:
parent
6472b44c34
commit
59cd8a0cfa
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue