summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-01 18:19:11 +0100
committerGitHub <noreply@github.com>2021-12-01 18:19:11 +0100
commit078e633294b07027c9f531ac1e849bb5b3d779f8 (patch)
tree3a1f45529be2595e2de0894dea9509d1a561b8f0 /test
parent295a6f7dd086731448a1168a349f62d3035258ca (diff)
parente2b344728cb0869d14eb165496a5c436cd9fb650 (diff)
downloadpodman-078e633294b07027c9f531ac1e849bb5b3d779f8.tar.gz
podman-078e633294b07027c9f531ac1e849bb5b3d779f8.tar.bz2
podman-078e633294b07027c9f531ac1e849bb5b3d779f8.zip
Merge pull request #12462 from vrothberg/fix-12452
top: parse ps(1) args correctly
Diffstat (limited to 'test')
-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() {