diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-18 09:22:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 09:22:07 -0700 |
commit | 4b3161b6870e9e96025a307c18bf1f5cb4473f1a (patch) | |
tree | 4f6512ae594ec9b475af29716afb9916428a7542 /test/e2e/logs_test.go | |
parent | ea54a1c2f51d3173649277939738ce9b1c392076 (diff) | |
parent | 46f18764f205ead97fb5da70104951cf90bf5b6b (diff) | |
download | podman-4b3161b6870e9e96025a307c18bf1f5cb4473f1a.tar.gz podman-4b3161b6870e9e96025a307c18bf1f5cb4473f1a.tar.bz2 podman-4b3161b6870e9e96025a307c18bf1f5cb4473f1a.zip |
Merge pull request #2679 from baude/issue2677
podman logs on created container should exit
Diffstat (limited to 'test/e2e/logs_test.go')
-rw-r--r-- | test/e2e/logs_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/logs_test.go b/test/e2e/logs_test.go index d383a83b3..d051e3dba 100644 --- a/test/e2e/logs_test.go +++ b/test/e2e/logs_test.go @@ -132,4 +132,14 @@ var _ = Describe("Podman logs", func() { Expect(len(output)).To(Equal(6)) Expect(strings.Contains(output[0], cid1[:12]) || strings.Contains(output[0], cid2[:12])).To(BeTrue()) }) + + It("podman logs on a created container should result in 0 exit code", func() { + session := podmanTest.Podman([]string{"create", "-dt", "--name", "log", ALPINE}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(BeZero()) + + results := podmanTest.Podman([]string{"logs", "log"}) + results.WaitWithDefaultTimeout() + Expect(results.ExitCode()).To(BeZero()) + }) }) |