diff options
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index c78c23b1f..7e79a8668 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -1015,4 +1015,16 @@ USER mail` Expect(session.ExitCode()).To(Equal(0)) } }) + + It("podman run --preserve-fds", func() { + devNull, err := os.Open("/dev/null") + Expect(err).To(BeNil()) + defer devNull.Close() + files := []*os.File{ + devNull, + } + session := podmanTest.PodmanExtraFiles([]string{"run", "--preserve-fds", "1", ALPINE, "ls"}, files) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) }) |