diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-24 13:29:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 13:29:20 -0400 |
commit | 361eb42619b2bccaf4fa7bb342dee779f72a512d (patch) | |
tree | 61769980b62ffaaaefa2636f419e829eeb56762c /test | |
parent | 2b05f4a0e6c05e4f653d86156858b4dff51a81b9 (diff) | |
parent | 65efcdf709a83e6d013b4e65247750c97236d89a (diff) | |
download | podman-361eb42619b2bccaf4fa7bb342dee779f72a512d.tar.gz podman-361eb42619b2bccaf4fa7bb342dee779f72a512d.tar.bz2 podman-361eb42619b2bccaf4fa7bb342dee779f72a512d.zip |
Merge pull request #15434 from rhatdan/manifest1
Allow podman to run in an environment with keys containing spaces
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_env_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_env_test.go b/test/e2e/run_env_test.go index 9e78e150a..2b2d67f57 100644 --- a/test/e2e/run_env_test.go +++ b/test/e2e/run_env_test.go @@ -58,6 +58,13 @@ var _ = Describe("Podman run", func() { Expect(session).Should(Exit(0)) Expect(session.OutputToString()).To(ContainSubstring("/bin")) + // Verify environ keys with spaces do not blow up podman command + os.Setenv("FOO BAR", "BAZ") + session = podmanTest.Podman([]string{"run", "--rm", ALPINE, "true"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + os.Unsetenv("FOO BAR") + os.Setenv("FOO", "BAR") session = podmanTest.Podman([]string{"run", "--rm", "--env", "FOO", ALPINE, "printenv", "FOO"}) session.WaitWithDefaultTimeout() |