diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-20 12:45:04 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-20 23:22:22 +0100 |
commit | a53c768409db7cf18c20eab73a24bd193493c9ce (patch) | |
tree | 5ed2a7da8757e1a34fe9b52dcfd4b17aaccf3e8d /test | |
parent | c230f0c693134830b3df60a8dc37770848a6f5e2 (diff) | |
download | podman-a53c768409db7cf18c20eab73a24bd193493c9ce.tar.gz podman-a53c768409db7cf18c20eab73a24bd193493c9ce.tar.bz2 podman-a53c768409db7cf18c20eab73a24bd193493c9ce.zip |
podman: do not split --env on comma
if --env "a=b,c" is used, do not split into a=b and c=.
Closes: https://github.com/containers/libpod/issues/2712
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 9ab4ae563..b0dc66707 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -152,10 +152,10 @@ var _ = Describe("Podman run", func() { }) It("podman run environment test", func() { - session := podmanTest.Podman([]string{"run", "--rm", "--env", "FOO=BAR", ALPINE, "printenv", "FOO"}) + session := podmanTest.Podman([]string{"run", "--rm", "--env", "FOO=BAR,BAZ", ALPINE, "printenv", "FOO"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - match, _ := session.GrepString("BAR") + match, _ := session.GrepString("BAR,BAZ") Expect(match).Should(BeTrue()) session = podmanTest.Podman([]string{"run", "--rm", "--env", "PATH=/bin", ALPINE, "printenv", "PATH"}) |