summaryrefslogtreecommitdiff
path: root/test/e2e/prune_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-22 21:56:20 +0100
committerGitHub <noreply@github.com>2019-11-22 21:56:20 +0100
commitc2dfef544476dba671db3ef65b095da9ec18bbf1 (patch)
tree8a8590e3c3e9f4bc96a030d2ebb874876ae01420 /test/e2e/prune_test.go
parentef240f4cd0fd3bf45f79522eb0cc3aad228e32ac (diff)
parentd76242e5b4d4463508f85b85d28512f9ad720170 (diff)
downloadpodman-c2dfef544476dba671db3ef65b095da9ec18bbf1.tar.gz
podman-c2dfef544476dba671db3ef65b095da9ec18bbf1.tar.bz2
podman-c2dfef544476dba671db3ef65b095da9ec18bbf1.zip
Merge pull request #4554 from vrothberg/prune-me-tender-prune-me-sweet
e2e/prune: run two top containers
Diffstat (limited to 'test/e2e/prune_test.go')
-rw-r--r--test/e2e/prune_test.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/e2e/prune_test.go b/test/e2e/prune_test.go
index eba12dca4..16522785b 100644
--- a/test/e2e/prune_test.go
+++ b/test/e2e/prune_test.go
@@ -43,9 +43,14 @@ var _ = Describe("Podman prune", func() {
top.WaitWithDefaultTimeout()
Expect(top.ExitCode()).To(Equal(0))
- session := podmanTest.Podman([]string{"run", ALPINE, "ls"})
- session.WaitWithDefaultTimeout()
- Expect(session.ExitCode()).To(Equal(0))
+ top = podmanTest.RunTopContainer("")
+ top.WaitWithDefaultTimeout()
+ Expect(top.ExitCode()).To(Equal(0))
+ cid := top.OutputToString()
+
+ stop := podmanTest.Podman([]string{"stop", cid})
+ stop.WaitWithDefaultTimeout()
+ Expect(stop.ExitCode()).To(Equal(0))
prune := podmanTest.Podman([]string{"container", "prune"})
prune.WaitWithDefaultTimeout()