From 863196f3035119ae0b4df22915d3304b01ace4c9 Mon Sep 17 00:00:00 2001 From: Yiqiao Pu Date: Tue, 24 Apr 2018 18:30:53 +0800 Subject: Fix podman search no-trunc test Add --no-trunc to the command line and add output check for the lines not include "..." with this flag. Signed-off-by: Yiqiao Pu Closes: #662 Approved by: rhatdan --- test/e2e/search_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go index 5f3dd1068..9c23ba5bd 100644 --- a/test/e2e/search_test.go +++ b/test/e2e/search_test.go @@ -51,11 +51,12 @@ var _ = Describe("Podman search", func() { }) It("podman search no-trunc flag", func() { - search := podmanTest.Podman([]string{"search", "alpine"}) + search := podmanTest.Podman([]string{"search", "--no-trunc", "alpine"}) search.WaitWithDefaultTimeout() Expect(search.ExitCode()).To(Equal(0)) Expect(len(search.OutputToStringArray())).To(BeNumerically(">", 1)) Expect(search.LineInOutputContains("docker.io/library/alpine")).To(BeTrue()) + Expect(search.LineInOutputContains("...")).To(BeFalse()) }) It("podman search limit flag", func() { -- cgit v1.2.3-54-g00ecf