summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-07-05 15:39:34 +0200
committerMatthew Heon <matthew.heon@pm.me>2020-07-06 13:07:29 -0400
commit0e547a4cc3c8c49053338ea73c02be708257c3d9 (patch)
tree3a2286077c5b90a605e710993879592b95dc1a87 /test/e2e
parent1a60550bef976a57777c75e055ad35ff8cf87f23 (diff)
downloadpodman-0e547a4cc3c8c49053338ea73c02be708257c3d9.tar.gz
podman-0e547a4cc3c8c49053338ea73c02be708257c3d9.tar.bz2
podman-0e547a4cc3c8c49053338ea73c02be708257c3d9.zip
podman ps truncate the command
With a long create command the output from ps is basically unreadable. This is a regression that was introduced with Podman 2.0. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/ps_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index 3d583bb8c..152c85704 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -466,4 +466,15 @@ var _ = Describe("Podman ps", func() {
Expect(ps.ExitCode()).To(Equal(0))
Expect(ps.OutputToString()).To(ContainSubstring("0.0.0.0:8080->80/tcp"))
})
+
+ It("podman ps truncate long create commad", func() {
+ session := podmanTest.Podman([]string{"run", ALPINE, "echo", "very", "long", "create", "command"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"ps", "-a"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.OutputToString()).To(ContainSubstring("echo very long cr..."))
+ })
+
})