summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-06-10 14:14:01 -0400
committerQi Wang <qiwan@redhat.com>2020-06-11 17:55:26 -0400
commit033743cbee180d9a4149f574375cc1201e573d06 (patch)
tree280ff78ae8e5fffaf5c57acb77496c5358a95864 /test
parent1f05606fac7e5835cd76ef407a64597df3251aae (diff)
downloadpodman-033743cbee180d9a4149f574375cc1201e573d06.tar.gz
podman-033743cbee180d9a4149f574375cc1201e573d06.tar.bz2
podman-033743cbee180d9a4149f574375cc1201e573d06.zip
Fix -f logs follow with stopped container
Fix -f logs follow with stopped container. Close #6531 Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'test')
-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))
+ })
})