summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-06 09:33:23 -0400
committerGitHub <noreply@github.com>2020-07-06 09:33:23 -0400
commit262843e1ce22575483f66fcd17a237202eaa3108 (patch)
tree12f08ed03d0259d9b360223e73ca2a4d4a306b90 /test/e2e
parent9bccb0f091a82656593a069891f143e78a8719e9 (diff)
parentb3dd42a7977bef2ea3408857200edde61abf25b7 (diff)
downloadpodman-262843e1ce22575483f66fcd17a237202eaa3108.tar.gz
podman-262843e1ce22575483f66fcd17a237202eaa3108.tar.bz2
podman-262843e1ce22575483f66fcd17a237202eaa3108.zip
Merge pull request #6855 from Luap99/ps-command-trunc
podman ps truncate the command
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 cfc0a415e..5277e2200 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..."))
+ })
+
})