mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
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 <ypu@redhat.com> Closes: #662 Approved by: rhatdan
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user