summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-15 13:57:13 -0400
committerGitHub <noreply@github.com>2020-06-15 13:57:13 -0400
commit8a42a32c71431194cd6945bf2b88c8a278803280 (patch)
treeebd9b6005ab92398a2575efca476589fcd9e06bd /test/e2e
parent5a82a559c6b58833df8fc02a589e9f349a053e16 (diff)
parent6d9863e7738719a100ac56c1e646c169e4c0bd11 (diff)
downloadpodman-8a42a32c71431194cd6945bf2b88c8a278803280.tar.gz
podman-8a42a32c71431194cd6945bf2b88c8a278803280.tar.bz2
podman-8a42a32c71431194cd6945bf2b88c8a278803280.zip
Merge pull request #6591 from jgallucci32/patch-1
Merged request to fix -f to stop following logs
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/logs_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/logs_test.go b/test/e2e/logs_test.go
index f36163ccc..f9446e0c6 100644
--- a/test/e2e/logs_test.go
+++ b/test/e2e/logs_test.go
@@ -288,4 +288,16 @@ var _ = Describe("Podman logs", func() {
logc.WaitWithDefaultTimeout()
Expect(logc).To(Exit(0))
})
+
+ It("follow output stopped container", func() {
+ containerName := "logs-f"
+
+ logc := podmanTest.Podman([]string{"run", "--name", containerName, "-d", ALPINE})
+ logc.WaitWithDefaultTimeout()
+ Expect(logc).To(Exit(0))
+
+ results := podmanTest.Podman([]string{"logs", "-f", containerName})
+ results.WaitWithDefaultTimeout()
+ Expect(results).To(Exit(0))
+ })
})