diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-17 13:14:46 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-17 13:16:01 -0400 |
commit | 546bb3548ce9af58ebf0a627eb66ea7ad2163c6b (patch) | |
tree | 62322b34576d439ee2b3887a7df7dd88d3a137dc /test | |
parent | 5de215e1447af96ec2b199794cd425b75a2da08a (diff) | |
download | podman-546bb3548ce9af58ebf0a627eb66ea7ad2163c6b.tar.gz podman-546bb3548ce9af58ebf0a627eb66ea7ad2163c6b.tar.bz2 podman-546bb3548ce9af58ebf0a627eb66ea7ad2163c6b.zip |
Add podman stats --no-trunc option
This is for compatibility with Docker.
Partial fix for https://github.com/containers/podman/issues/14917
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/stats_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/stats_test.go b/test/e2e/stats_test.go index 3000a819f..981c00316 100644 --- a/test/e2e/stats_test.go +++ b/test/e2e/stats_test.go @@ -79,9 +79,10 @@ var _ = Describe("Podman stats", func() { session := podmanTest.RunTopContainer("") session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - session = podmanTest.Podman([]string{"stats", "--all", "--no-stream", "--format", "\"{{.ID}}\""}) + session = podmanTest.Podman([]string{"stats", "--all", "--no-trunc", "--no-stream", "--format", "\"{{.ID}}\""}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) + Expect(len(session.OutputToStringArray()[0])).Should(BeEquivalentTo(66)) }) It("podman stats with GO template", func() { |