diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-25 18:16:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-25 18:16:50 +0100 |
commit | 73cfb9f127b0991c3faac9ff1fafed8d65355e4b (patch) | |
tree | 1f2f32d614e50cad5a36fe5a8280b79caa13ed22 /test | |
parent | ed08352dfa224fe7764bb3cf98c96c073ca0190a (diff) | |
parent | e41279b902a334e53c56330a28f42d7a6027df74 (diff) | |
download | podman-73cfb9f127b0991c3faac9ff1fafed8d65355e4b.tar.gz podman-73cfb9f127b0991c3faac9ff1fafed8d65355e4b.tar.bz2 podman-73cfb9f127b0991c3faac9ff1fafed8d65355e4b.zip |
Merge pull request #2423 from rhatdan/rm
Change exit code to 1 on podman rm nosuch container
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/rm_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/rm_test.go b/test/e2e/rm_test.go index bc1431bce..71dacfa80 100644 --- a/test/e2e/rm_test.go +++ b/test/e2e/rm_test.go @@ -128,4 +128,9 @@ var _ = Describe("Podman rm", func() { Expect(podmanTest.NumberOfContainers()).To(Equal(1)) }) + It("podman rm bogus container", func() { + session := podmanTest.Podman([]string{"rm", "bogus"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(1)) + }) }) |