diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-12 08:51:53 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-13 14:04:01 -0400 |
commit | ba2130ff55d1410407d56c65d5592ee40d20fae2 (patch) | |
tree | 9be9c9f4001f683a10c4a91d331ba3cadf64cdb8 /test | |
parent | cc9491447479844ffdd27ba1c310d7e0a5a59a79 (diff) | |
download | podman-ba2130ff55d1410407d56c65d5592ee40d20fae2.tar.gz podman-ba2130ff55d1410407d56c65d5592ee40d20fae2.tar.bz2 podman-ba2130ff55d1410407d56c65d5592ee40d20fae2.zip |
If container exits with 125 podman should exit with 125
fixes: https://github.com/containers/podman/issues/11540
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_exit_test.go | 7 |
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)) + }) }) |