Merge pull request #2482 from edsantiago/podman_image_rm

Fix usage messages for podman image list, rm
This commit is contained in:
OpenShift Merge Robot
2019-03-01 12:35:59 -08:00
committed by GitHub
2 changed files with 16 additions and 3 deletions

View File

@@ -275,4 +275,13 @@ RUN find $LOCAL
Expect(images.ExitCode()).To(Equal(0))
Expect(len(images.OutputToStringArray())).To(Equal(0))
})
// Don't rerun all tests; just assume that if we get that diagnostic,
// we're getting rmi
It("podman image rm is the same as rmi", func() {
session := podmanTest.Podman([]string{"image", "rm"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(125))
Expect(session.LineInOutputContains("image name or ID must be specified"))
})
})