diff options
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 759c292eb..34ed55941 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -465,4 +465,15 @@ var _ = Describe("Podman run", func() { Expect(session.ExitCode()).To(Equal(125)) }) + It("podman run exit code on failure to exec", func() { + session := podmanTest.Podman([]string{"run", ALPINE, "/etc"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(126)) + }) + + It("podman run error on exec", func() { + session := podmanTest.Podman([]string{"run", ALPINE, "sh", "-c", "exit 100"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(100)) + }) }) |