diff options
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/top_test.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/e2e/top_test.go b/test/e2e/top_test.go index e7ac90219..d26a19ba4 100644 --- a/test/e2e/top_test.go +++ b/test/e2e/top_test.go @@ -59,32 +59,24 @@ var _ = Describe("Podman top", func() { Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1)) }) - // XXX(ps-issue): for the time being, podman-top and the libpod API - // GetContainerPidInformation(...) will ignore any arguments passed to ps, - // so we have to disable the tests below. Please refer to - // https://github.com/projectatomic/libpod/pull/939 for more background - // information. - It("podman top with options", func() { - Skip("podman-top with options: options are temporarily ignored") session := podmanTest.Podman([]string{"run", "-d", ALPINE, "top", "-d", "2"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - result := podmanTest.Podman([]string{"top", session.OutputToString(), "-o", "pid,fuser,f,comm,label"}) + result := podmanTest.Podman([]string{"top", session.OutputToString(), "pid", "%C", "args"}) result.WaitWithDefaultTimeout() Expect(result.ExitCode()).To(Equal(0)) Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1)) }) It("podman top on container invalid options", func() { - Skip("podman-top with invalid options: options are temporarily ignored") top := podmanTest.RunTopContainer("") top.WaitWithDefaultTimeout() Expect(top.ExitCode()).To(Equal(0)) cid := top.OutputToString() - result := podmanTest.Podman([]string{"top", cid, "-o time"}) + result := podmanTest.Podman([]string{"top", cid, "invalid"}) result.WaitWithDefaultTimeout() Expect(result.ExitCode()).To(Equal(125)) }) |