diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 12:15:33 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 12:56:22 +0200 |
commit | 543d5f17405e65386bd848d9f4d06cfbce27ef29 (patch) | |
tree | 08ae9a898cbd78f0c53edbfc9059c725c945ed57 /test/e2e | |
parent | 2e6a62fc380976b06fc9a57892b4070528b94b60 (diff) | |
download | podman-543d5f17405e65386bd848d9f4d06cfbce27ef29.tar.gz podman-543d5f17405e65386bd848d9f4d06cfbce27ef29.tar.bz2 podman-543d5f17405e65386bd848d9f4d06cfbce27ef29.zip |
test: fix --host-env test
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 92db37096..735fc1d5d 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -251,15 +251,15 @@ var _ = Describe("Podman run", func() { }) It("podman run --host-env environment test", func() { - Skip(v2fail) - os.Setenv("FOO", "BAR") - session := podmanTest.Podman([]string{"run", "--rm", "--env-host", ALPINE, "printenv", "FOO"}) + env := append(os.Environ(), "FOO=BAR") + session := podmanTest.PodmanAsUser([]string{"run", "--rm", "--env-host", ALPINE, "/bin/printenv", "FOO"}, 0, 0, "", env) + session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) match, _ := session.GrepString("BAR") Expect(match).Should(BeTrue()) - session = podmanTest.Podman([]string{"run", "--rm", "--env", "FOO=BAR1", "--env-host", ALPINE, "printenv", "FOO"}) + session = podmanTest.PodmanAsUser([]string{"run", "--rm", "--env", "FOO=BAR1", "--env-host", ALPINE, "/bin/printenv", "FOO"}, 0, 0, "", env) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) match, _ = session.GrepString("BAR1") |