diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-23 10:51:21 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-09-06 14:17:01 -0400 |
commit | 455a363bf1eb4040e95105cb22872c7fc529e08f (patch) | |
tree | 54055f72f296b9ae95a2fb0d814deecde7ec1b46 /test/e2e | |
parent | d40175e0aebc64a24f4987d2d1a60f3d7cbe7375 (diff) | |
download | podman-455a363bf1eb4040e95105cb22872c7fc529e08f.tar.gz podman-455a363bf1eb4040e95105cb22872c7fc529e08f.tar.bz2 podman-455a363bf1eb4040e95105cb22872c7fc529e08f.zip |
Allow podman to run in an environment with keys containing spaces
Fixes: https://github.com/containers/podman/issues/15251
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e')
-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 bab52efc5..4580d68ce 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() |