mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Fix podman ps --filter ancestor to match exact ImageName/ImageID
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
@@ -269,6 +269,12 @@ var _ = Describe("Podman ps", func() {
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
Expect(result.OutputToString()).To(Equal(cid))
|
||||
|
||||
// Query by trunctated image name should not match ( should return empty output )
|
||||
result = podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "-a", "--filter", "ancestor=quay.io/libpod/alpi"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
Expect(result.OutputToString()).To(Equal(""))
|
||||
})
|
||||
|
||||
It("podman ps id filter flag", func() {
|
||||
|
||||
Reference in New Issue
Block a user