summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-17 09:55:32 -0500
committerGitHub <noreply@github.com>2021-02-17 09:55:32 -0500
commit2e522ff29cfea06a37debfc4a31a231bf7097b34 (patch)
tree14dcb028e71b9a33ba84944bfa842badc552f68a /test
parentaa7c7bde7918ee830551299c0bf2196ec00b18ec (diff)
parent12a577aea55bc5967913da6306d819065c0cfb76 (diff)
downloadpodman-2e522ff29cfea06a37debfc4a31a231bf7097b34.tar.gz
podman-2e522ff29cfea06a37debfc4a31a231bf7097b34.tar.bz2
podman-2e522ff29cfea06a37debfc4a31a231bf7097b34.zip
Merge pull request #9404 from rhatdan/entrypoint
Ignore entrypoint=[""]
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_entrypoint_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/run_entrypoint_test.go b/test/e2e/run_entrypoint_test.go
index cac3d759d..389f142b1 100644
--- a/test/e2e/run_entrypoint_test.go
+++ b/test/e2e/run_entrypoint_test.go
@@ -43,6 +43,18 @@ CMD []
Expect(session.ExitCode()).To(Equal(125))
})
+ It("podman run entrypoint == [\"\"]", func() {
+ dockerfile := `FROM quay.io/libpod/alpine:latest
+ENTRYPOINT [""]
+CMD []
+`
+ podmanTest.BuildImage(dockerfile, "foobar.com/entrypoint:latest", "false")
+ session := podmanTest.Podman([]string{"run", "foobar.com/entrypoint:latest", "echo", "hello"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(Equal("hello"))
+ })
+
It("podman run entrypoint", func() {
dockerfile := `FROM quay.io/libpod/alpine:latest
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]