summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-13 15:24:30 -0400
committerGitHub <noreply@github.com>2021-09-13 15:24:30 -0400
commit473f958e137eb9d8a3a3ef44cf3c17513243c18d (patch)
treed64e7a41dd760cb1cac2888fef97536279cef915 /test/e2e
parent55a7f89fcae7ed8f16e10d4dae84cbdd3ecb1272 (diff)
parentba2130ff55d1410407d56c65d5592ee40d20fae2 (diff)
downloadpodman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.tar.gz
podman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.tar.bz2
podman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.zip
Merge pull request #11545 from rhatdan/exitcodes
If container exits with 125 podman should exit with 125
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_exit_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_exit_test.go b/test/e2e/run_exit_test.go
index e86718577..6c39e5a1f 100644
--- a/test/e2e/run_exit_test.go
+++ b/test/e2e/run_exit_test.go
@@ -1,6 +1,7 @@
package integration
import (
+ "fmt"
"os"
"github.com/containers/podman/v3/libpod/define"
@@ -63,4 +64,10 @@ var _ = Describe("Podman run exit", func() {
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(50))
})
+
+ It("podman run exit 125", func() {
+ result := podmanTest.Podman([]string{"run", ALPINE, "sh", "-c", fmt.Sprintf("exit %d", define.ExecErrorCodeGeneric)})
+ result.WaitWithDefaultTimeout()
+ Expect(result).Should(Exit(define.ExecErrorCodeGeneric))
+ })
})