mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Fix e2e test for podman build --logfile
Type casting is necessary to see if the logfile size is not equal to 0. Signed-off-by: Hironori Shiina <Hironori.Shiina@fujitsu.com>
This commit is contained in:
@ -72,9 +72,9 @@ var _ = Describe("Podman build", func() {
|
|||||||
|
|
||||||
st, err := os.Stat(logfile)
|
st, err := os.Stat(logfile)
|
||||||
Expect(err).To(BeNil())
|
Expect(err).To(BeNil())
|
||||||
Expect(st.Size()).To(Not(Equal(0)))
|
Expect(st.Size()).To(Not(Equal(int64(0))))
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"rmi", "alpine"})
|
session = podmanTest.Podman([]string{"rmi", "test"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session.ExitCode()).To(Equal(0))
|
Expect(session.ExitCode()).To(Equal(0))
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user