Signed-off-by: chenkang <kongchen28@gmail.com>
This commit is contained in:
chenkang 2021-04-16 15:12:57 +08:00
parent 8fbe06b8cb
commit 4fb5fee412
1 changed files with 8 additions and 0 deletions

View File

@ -1613,4 +1613,12 @@ WORKDIR /madethis`, BB)
Expect(running.ExitCode()).To(Equal(0))
Expect(len(running.OutputToStringArray())).To(Equal(2))
})
It("podman run with pidfile", func() {
session := podmanTest.Podman([]string{"run", "--pidfile", tempdir + "pidfile", ALPINE, "ls"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
err := os.Remove(tempdir + "pidfile")
Expect(err).To(BeNil())
})
})