diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-29 18:53:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 18:53:06 +0200 |
commit | 06dce0c7709f3890ec3dad7993c24c5cdaaf62f9 (patch) | |
tree | e91e17ca9c46540aedbec46e7268ba5f65b24d0c /test/e2e/rmi_test.go | |
parent | 27aa3a7837fa1c5379ff7ca1a9dcd6416b2ac685 (diff) | |
parent | a9cc13448ee3185bb63f4c3eef94e755e79b8571 (diff) | |
download | podman-06dce0c7709f3890ec3dad7993c24c5cdaaf62f9.tar.gz podman-06dce0c7709f3890ec3dad7993c24c5cdaaf62f9.tar.bz2 podman-06dce0c7709f3890ec3dad7993c24c5cdaaf62f9.zip |
Merge pull request #5949 from jwhonce/jira/796
V2 Restore images list tests
Diffstat (limited to 'test/e2e/rmi_test.go')
-rw-r--r-- | test/e2e/rmi_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go index d556cbc72..6c0b01bd5 100644 --- a/test/e2e/rmi_test.go +++ b/test/e2e/rmi_test.go @@ -141,12 +141,13 @@ var _ = Describe("Podman rmi", func() { session = podmanTest.PodmanNoCache([]string{"images", "-q", "-a"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - Expect(len(session.OutputToStringArray())).To(Equal(2)) - untaggedImg := session.OutputToStringArray()[1] + Expect(len(session.OutputToStringArray())).To(Equal(2), + "Output from 'podman images -q -a':'%s'", session.Out.Contents()) + untaggedImg := session.OutputToStringArray()[0] session = podmanTest.PodmanNoCache([]string{"rmi", "-f", untaggedImg}) session.WaitWithDefaultTimeout() - Expect(session).Should(Exit(2)) + Expect(session).Should(Exit(2), "UntaggedImg is '%s'", untaggedImg) }) It("podman rmi image that is created from another named imaged", func() { |