diff options
author | Ashley Cui <acui@redhat.com> | 2020-07-30 13:50:50 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-07-31 11:44:53 -0400 |
commit | 2cc9af369290428ca3d5e96bee5b65262b57a1f7 (patch) | |
tree | 5ee3bd565c4a660819f58e8032348551701bbaa4 /test/e2e/ps_test.go | |
parent | 994dc3294291e07926954737c3874457affb9994 (diff) | |
download | podman-2cc9af369290428ca3d5e96bee5b65262b57a1f7.tar.gz podman-2cc9af369290428ca3d5e96bee5b65262b57a1f7.tar.bz2 podman-2cc9af369290428ca3d5e96bee5b65262b57a1f7.zip |
add {{.RunningFor}} placeholder in ps --format
For docker compatibility
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r-- | test/e2e/ps_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go index 152c85704..48746f30c 100644 --- a/test/e2e/ps_test.go +++ b/test/e2e/ps_test.go @@ -476,5 +476,13 @@ var _ = Describe("Podman ps", func() { session.WaitWithDefaultTimeout() Expect(session.OutputToString()).To(ContainSubstring("echo very long cr...")) }) + It("podman ps --format {{RunningFor}}", func() { + _, ec, _ := podmanTest.RunLsContainer("") + Expect(ec).To(Equal(0)) + result := podmanTest.Podman([]string{"ps", "-a", "--format", "{{.RunningFor}}"}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).To(Equal(0)) + Expect(result.OutputToString()).To(ContainSubstring("ago")) + }) }) |