diff options
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/rmi_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go index 054b83431..8224cd345 100644 --- a/test/e2e/rmi_test.go +++ b/test/e2e/rmi_test.go @@ -238,4 +238,14 @@ var _ = Describe("Podman rmi", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(len(session.OutputToString())).To(Equal(0)) }) + + It("podman rmi -a with no images should be exit 0", func() { + session := podmanTest.Podman([]string{"rmi", "-fa"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session2 := podmanTest.Podman([]string{"rmi", "-fa"}) + session2.WaitWithDefaultTimeout() + Expect(session2.ExitCode()).To(Equal(0)) + }) }) |