summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-16 15:12:57 +0800
committerchenkang <kongchen28@gmail.com>2021-04-16 15:12:57 +0800
commit4fb5fee4120165d43ee6b98f7258cda741d41d45 (patch)
tree3398b3f3bffa98230109ac8676ed008c0f0793d3 /test
parent8fbe06b8cbd8e3bc425d83130d562eb0c19f309b (diff)
downloadpodman-4fb5fee4120165d43ee6b98f7258cda741d41d45.tar.gz
podman-4fb5fee4120165d43ee6b98f7258cda741d41d45.tar.bz2
podman-4fb5fee4120165d43ee6b98f7258cda741d41d45.zip
add ut
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go8
1 files changed, 8 insertions, 0 deletions
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())
+ })
})