summaryrefslogtreecommitdiff
path: root/test/e2e/pod_rm_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-30 11:33:19 +0000
committerGitHub <noreply@github.com>2020-09-30 11:33:19 +0000
commit08d036cbd4225a9802fb8dc7c4da7b53ded3896a (patch)
treeb38e8fa39f94589bfdaf90444d3dfe1dce4b41e8 /test/e2e/pod_rm_test.go
parent19f080f1af884c1e36f55dc81cd51b0ac91a868a (diff)
parent22474095abe39c14c902650b08002c0bc89e7e6a (diff)
downloadpodman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.tar.gz
podman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.tar.bz2
podman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.zip
Merge pull request #7825 from rhatdan/exitcode
Fix handling of remove of bogus volumes, networks and Pods
Diffstat (limited to 'test/e2e/pod_rm_test.go')
-rw-r--r--test/e2e/pod_rm_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/e2e/pod_rm_test.go b/test/e2e/pod_rm_test.go
index cb9b93a15..24643e6b2 100644
--- a/test/e2e/pod_rm_test.go
+++ b/test/e2e/pod_rm_test.go
@@ -195,8 +195,7 @@ var _ = Describe("Podman pod rm", func() {
It("podman rm bogus pod", func() {
session := podmanTest.Podman([]string{"pod", "rm", "bogus"})
session.WaitWithDefaultTimeout()
- // TODO: `podman rm` returns 1 for a bogus container. Should the RC be consistent?
- Expect(session.ExitCode()).To(Equal(125))
+ Expect(session.ExitCode()).To(Equal(1))
})
It("podman rm bogus pod and a running pod", func() {
@@ -209,11 +208,11 @@ var _ = Describe("Podman pod rm", func() {
session = podmanTest.Podman([]string{"pod", "rm", "bogus", "test1"})
session.WaitWithDefaultTimeout()
- Expect(session.ExitCode()).To(Equal(125))
+ Expect(session.ExitCode()).To(Equal(1))
session = podmanTest.Podman([]string{"pod", "rm", "test1", "bogus"})
session.WaitWithDefaultTimeout()
- Expect(session.ExitCode()).To(Equal(125))
+ Expect(session.ExitCode()).To(Equal(1))
})
It("podman rm --ignore bogus pod and a running pod", func() {