Merge pull request #18969 from danishprakash/env-merge-fix

run,create: modify `--env-merge` behavior for non-existent vars
This commit is contained in:
OpenShift Merge Robot
2023-06-22 14:21:59 +02:00
committed by GitHub
3 changed files with 18 additions and 3 deletions

View File

@@ -76,6 +76,11 @@ ENV hello=world
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.OutputToString()).To(ContainSubstring("world-earth"))
session = podmanTest.Podman([]string{"run", "--rm", "--env-merge", "foo=${bar}-earth", "test", "printenv", "foo"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.OutputToString()).To(Equal("-earth"))
})
It("podman run --env-host environment test", func() {