diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-30 21:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 21:20:34 +0200 |
commit | e84ed3c1bca2a35f8b531473dafede7a2c624d0a (patch) | |
tree | 42dbcbc54a4c2f5d0f51d6e3aba2c93ee7372a1b /test | |
parent | 1a008958d42644aaf20e35a79463d9eea366ef55 (diff) | |
parent | 2da86bdc3a626f3aebaadbf28c5cc73f80995a78 (diff) | |
download | podman-e84ed3c1bca2a35f8b531473dafede7a2c624d0a.tar.gz podman-e84ed3c1bca2a35f8b531473dafede7a2c624d0a.tar.bz2 podman-e84ed3c1bca2a35f8b531473dafede7a2c624d0a.zip |
Merge pull request #3665 from QiWang19/env
Set -env variables as appropriate
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index e35c84f5b..7b5ff2547 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -213,6 +213,11 @@ var _ = Describe("Podman run", func() { Expect(match).Should(BeTrue()) os.Unsetenv("FOO") + session = podmanTest.Podman([]string{"run", "--rm", "--env", "FOO", ALPINE, "printenv", "FOO"}) + session.WaitWithDefaultTimeout() + Expect(len(session.OutputToString())).To(Equal(0)) + Expect(session.ExitCode()).To(Equal(1)) + session = podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) |