diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-14 13:05:25 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-07-22 14:53:26 -0400 |
commit | 4d7626cc897d821bd8c931d1dde1fa0ab236f4f9 (patch) | |
tree | 721a9aa16790e706b993b59a77c46df9d1480d2e /test | |
parent | 84076bf95f485bccfd9e03108fb69a1f72b42918 (diff) | |
download | podman-4d7626cc897d821bd8c931d1dde1fa0ab236f4f9.tar.gz podman-4d7626cc897d821bd8c931d1dde1fa0ab236f4f9.tar.bz2 podman-4d7626cc897d821bd8c931d1dde1fa0ab236f4f9.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')
-rw-r--r-- | test/e2e/run_entrypoint_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/run_entrypoint_test.go b/test/e2e/run_entrypoint_test.go index c947fa863..e6604a21e 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() { |