summaryrefslogtreecommitdiff
path: root/test/e2e/run_entrypoint_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-07-14 13:05:25 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-07-14 13:10:03 -0400
commit6535c8b9e82a1cc1f5c8d03215b9de5851b2010c (patch)
treed99a0008d253b9bbb61f899eae6ca0143171a9af /test/e2e/run_entrypoint_test.go
parentd83077b16c14b05967fa1f92c7067299367a286f (diff)
downloadpodman-6535c8b9e82a1cc1f5c8d03215b9de5851b2010c.tar.gz
podman-6535c8b9e82a1cc1f5c8d03215b9de5851b2010c.tar.bz2
podman-6535c8b9e82a1cc1f5c8d03215b9de5851b2010c.zip
Fix handling of entrypoint
If a user specifies an entrypoint of "" then we should not use the images entrypoint. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/run_entrypoint_test.go')
-rw-r--r--test/e2e/run_entrypoint_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/run_entrypoint_test.go b/test/e2e/run_entrypoint_test.go
index 76e021552..741019770 100644
--- a/test/e2e/run_entrypoint_test.go
+++ b/test/e2e/run_entrypoint_test.go
@@ -101,6 +101,11 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
Expect(session.LineInOuputStartsWith("Linux")).To(BeTrue())
+
+ session = podmanTest.Podman([]string{"run", "--entrypoint", "", "foobar.com/entrypoint:latest", "uname"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.LineInOuputStartsWith("Linux")).To(BeTrue())
})
It("podman run user entrypoint with command overrides image entrypoint and image cmd", func() {