mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
Merge pull request #3412 from mheon/fix_ps_sync_segfault
Fix a segfault in 'podman ps --sync'
This commit is contained in:
@@ -320,4 +320,16 @@ var _ = Describe("Podman ps", func() {
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.OutputToString()).To(ContainSubstring("0.0.0.0:1000-1006"))
|
||||
})
|
||||
|
||||
It("podman ps sync flag", func() {
|
||||
session := podmanTest.RunTopContainer("")
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
fullCid := session.OutputToString()
|
||||
|
||||
result := podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "--sync"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
Expect(result.OutputToStringArray()[0]).To(Equal(fullCid))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user