mirror of
https://github.com/containers/podman.git
synced 2025-06-26 21:07:02 +08:00
Update WaitForTimeOut to output OutputString to help with debugging.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1416 Approved by: baude
This commit is contained in:

committed by
Atomic Bot

parent
a6811c89fc
commit
8b2b88ebff
@ -368,6 +368,7 @@ func (s *PodmanSession) InspectImageJSON() []inspect.ImageData {
|
||||
|
||||
func (s *PodmanSession) WaitWithDefaultTimeout() {
|
||||
s.Wait(defaultWaitTimeout)
|
||||
fmt.Println("output:", s.OutputToString())
|
||||
}
|
||||
|
||||
// SystemExec is used to exec a system command to check its exit code or output
|
||||
|
@ -299,7 +299,6 @@ var _ = Describe("Podman run", func() {
|
||||
log := filepath.Join(podmanTest.TempDir, "/container.log")
|
||||
session := podmanTest.Podman([]string{"run", "--rm", "--log-opt", fmt.Sprintf("path=%s", log), ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
fmt.Println(session.OutputToString())
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
_, err := os.Stat(log)
|
||||
Expect(err).To(BeNil())
|
||||
@ -313,7 +312,6 @@ var _ = Describe("Podman run", func() {
|
||||
|
||||
session := podmanTest.Podman([]string{"run", "--rm", "bb", "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
fmt.Println(session.OutputToString())
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user