From 4fb5fee4120165d43ee6b98f7258cda741d41d45 Mon Sep 17 00:00:00 2001 From: chenkang Date: Fri, 16 Apr 2021 15:12:57 +0800 Subject: add ut Signed-off-by: chenkang --- test/e2e/run_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/e2e/run_test.go') diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index cefe00655..ac459f6ab 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -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()) + }) }) -- cgit v1.2.3-54-g00ecf