aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/run_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-07-31 17:16:08 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-02 12:40:14 +0000
commita6de23278a6e5b7f27c093eb19c201b77b7c4416 (patch)
tree18226712362c752832a61bc772e7902338b50251 /test/e2e/run_test.go
parent3d1449b2cccdf6c84248c82758b0850c971d05be (diff)
downloadpodman-a6de23278a6e5b7f27c093eb19c201b77b7c4416.tar.gz
podman-a6de23278a6e5b7f27c093eb19c201b77b7c4416.tar.bz2
podman-a6de23278a6e5b7f27c093eb19c201b77b7c4416.zip
Use REGISTRIES_CONFIG_PATH for all tests
We should not be using the test systems registries.conf file for integration tests. We should always use a constructed file created specifically for the integration tests or we stand to have unpredictable results. The beforeTest function now sets an environment variable pointing to a registries.conf file in the test's tempdir. That file will container docker.io as a default. The afterTest function then clears the environment variable. Signed-off-by: baude <bbaude@redhat.com> Closes: #1197 Approved by: rhatdan
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r--test/e2e/run_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 1c86d48bc..7bba1e31e 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -562,7 +562,7 @@ USER mail`
err = os.MkdirAll(vol2, 0755)
Expect(err).To(BeNil())
- session := podmanTest.Podman([]string{"run", "--volume", vol1 + ":/myvol1:ro", "--volume", vol2 + ":/myvol2", ALPINE, "touch", "/myvol2/foo.txt"})
+ session := podmanTest.Podman([]string{"run", "--volume", vol1 + ":/myvol1:z", "--volume", vol2 + ":/myvol2:z", ALPINE, "touch", "/myvol2/foo.txt"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
})