summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-11-30 17:39:05 +0100
committerMatthew Heon <mheon@redhat.com>2021-12-06 15:38:10 -0500
commit39318f177965b3fa49cb4343c6a8c224836febd6 (patch)
treeb126183218e36a48457389242c067d60f753ab7c /test/e2e
parente1cf9d4c28af64035984b8963f73fb92b29480f3 (diff)
downloadpodman-39318f177965b3fa49cb4343c6a8c224836febd6.tar.gz
podman-39318f177965b3fa49cb4343c6a8c224836febd6.tar.bz2
podman-39318f177965b3fa49cb4343c6a8c224836febd6.zip
top: parse ps(1) args correctly
The arguments of ps(1) should be shlexed. Fixes: #12452 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/top_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/top_test.go b/test/e2e/top_test.go
index 93c4f3f12..1a71ebf33 100644
--- a/test/e2e/top_test.go
+++ b/test/e2e/top_test.go
@@ -101,6 +101,11 @@ var _ = Describe("Podman top", func() {
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1))
+
+ result = podmanTest.Podman([]string{"top", session.OutputToString(), "ax -o args"})
+ result.WaitWithDefaultTimeout()
+ Expect(result).Should(Exit(0))
+ Expect(result.OutputToStringArray()).To(Equal([]string{"COMMAND", "top -d 2"}))
})
It("podman top with comma-separated options", func() {