mirror of
https://github.com/containers/podman.git
synced 2025-12-16 03:57:36 +08:00
run,create: modify --env-merge behavior for non-existent vars
Signed-off-by: danishprakash <danish.prakash@suse.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user