summaryrefslogtreecommitdiff
path: root/test/e2e/run_exit_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-21 09:43:28 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-21 16:49:00 +0000
commitf1f0f37dc142dc1687df1750c0d8c8fe1f79111a (patch)
treee8da153bed6597a4baa72cddc0a0980c0adbcc0a /test/e2e/run_exit_test.go
parent6ce70a33c5825c0f4d2afae7643db95e8b7d46f1 (diff)
downloadpodman-f1f0f37dc142dc1687df1750c0d8c8fe1f79111a.tar.gz
podman-f1f0f37dc142dc1687df1750c0d8c8fe1f79111a.tar.bz2
podman-f1f0f37dc142dc1687df1750c0d8c8fe1f79111a.zip
Correct exit code 126 and 127
The exit codes for 126 and 127 were reversed. For the record, the exit codes used are as follows: * 125 if ‘chroot’ itself fails * 126 if COMMAND is found but cannot be invoked * 127 if COMMAND cannot be found This resolves issue #367 Signed-off-by: baude <bbaude@redhat.com> Closes: #378 Approved by: baude
Diffstat (limited to 'test/e2e/run_exit_test.go')
-rw-r--r--test/e2e/run_exit_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/run_exit_test.go b/test/e2e/run_exit_test.go
index 3b9e08b5e..b381d0613 100644
--- a/test/e2e/run_exit_test.go
+++ b/test/e2e/run_exit_test.go
@@ -35,13 +35,13 @@ var _ = Describe("Podman run exit", func() {
})
It("podman run exit 126", func() {
- result := podmanTest.Podman([]string{"run", ALPINE, "foobar"})
+ result := podmanTest.Podman([]string{"run", ALPINE, "/etc"})
result.WaitWithDefaultTimeout()
Expect(result.ExitCode()).To(Equal(126))
})
It("podman run exit 127", func() {
- result := podmanTest.Podman([]string{"run", ALPINE, "/etc"})
+ result := podmanTest.Podman([]string{"run", ALPINE, "foobar"})
result.WaitWithDefaultTimeout()
Expect(result.ExitCode()).To(Equal(127))
})