aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/ps_test.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-07-13 16:35:05 -0400
committerGitHub <noreply@github.com>2018-07-13 16:35:05 -0400
commit4729fd425588e17eff4f575d433f1075d4e27bb4 (patch)
treee7727035759b5c7aa08a745a2f87ae0fd4e546af /test/e2e/ps_test.go
parenta689639a6502bab3f49b853bc2983c1b44363b2f (diff)
parent259136c36c89cb32e28edfe8b5d7a3c1082fad5b (diff)
downloadpodman-4729fd425588e17eff4f575d433f1075d4e27bb4.tar.gz
podman-4729fd425588e17eff4f575d433f1075d4e27bb4.tar.bz2
podman-4729fd425588e17eff4f575d433f1075d4e27bb4.zip
Merge pull request #1089 from mheon/add_exited
Record whether the container has exited
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r--test/e2e/ps_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index 38b59e1d1..b3d58af77 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -201,12 +201,15 @@ var _ = Describe("Podman ps", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- session = podmanTest.Podman([]string{"ps", "-a", "--sort=size", "--format", "{{.Size}}"})
+ session = podmanTest.Podman([]string{"ps", "-a", "-s", "--sort=size", "--format", "{{.Size}}"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
sortedArr := session.OutputToStringArray()
+ // TODO: This may be broken - the test was running without the
+ // ability to perform any sorting for months and succeeded
+ // without error.
Expect(sort.SliceIsSorted(sortedArr, func(i, j int) bool {
r := regexp.MustCompile(`^\S+\s+\(virtual (\S+)\)`)
matches1 := r.FindStringSubmatch(sortedArr[i])