summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-09-04 12:33:29 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-05 11:06:59 +0000
commit4ddcbd7941e8cb32cbdcac2f1aa3a939e82be764 (patch)
treead977e07efc403cab09795e56ab839839809c033 /test
parent807f6f8d8f98422cfcfe7e474e26a985d951af4d (diff)
downloadpodman-4ddcbd7941e8cb32cbdcac2f1aa3a939e82be764.tar.gz
podman-4ddcbd7941e8cb32cbdcac2f1aa3a939e82be764.tar.bz2
podman-4ddcbd7941e8cb32cbdcac2f1aa3a939e82be764.zip
rmi remove all not error when no images are present
When running podman rm -a on a storage where no images exist, the exit code should NOT be non-zero. Signed-off-by: baude <bbaude@redhat.com> Closes: #1402 Approved by: rhatdan
Diffstat (limited to 'test')
-rw-r--r--test/e2e/rmi_test.go10
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))
+ })
})