From d7f9781bd6cef1373227585bb3b71f557b818822 Mon Sep 17 00:00:00 2001
From: haircommander <pehunt@redhat.com>
Date: Tue, 5 Jun 2018 14:21:41 -0400
Subject: Propegate exit code on Exec calls and integrated test

Signed-off-by: haircommander <pehunt@redhat.com>

Closes: #904
Approved by: rhatdan
---
 test/e2e/exec_test.go | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'test/e2e')

diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go
index c64c8666c..510fc81aa 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -86,5 +86,14 @@ var _ = Describe("Podman exec", func() {
 		os.Unsetenv("FOO")
 
 	})
+	It("podman exec exit code", func() {
+		setup := podmanTest.RunTopContainer("test1")
+		setup.WaitWithDefaultTimeout()
+		Expect(setup.ExitCode()).To(Equal(0))
+
+		session := podmanTest.Podman([]string{"exec", "test1", "sh", "-c", "exit 100"})
+		session.WaitWithDefaultTimeout()
+		Expect(session.ExitCode()).To(Equal(100))
+	})
 
 })
-- 
cgit v1.2.3-54-g00ecf