From a6de23278a6e5b7f27c093eb19c201b77b7c4416 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 31 Jul 2018 17:16:08 -0500 Subject: 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 Closes: #1197 Approved by: rhatdan --- test/e2e/run_signal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/e2e/run_signal_test.go') diff --git a/test/e2e/run_signal_test.go b/test/e2e/run_signal_test.go index bd00b8aa9..02b6f4941 100644 --- a/test/e2e/run_signal_test.go +++ b/test/e2e/run_signal_test.go @@ -63,7 +63,7 @@ var _ = Describe("Podman run with --sig-proxy", func() { udsPath := filepath.Join(udsDir, "fifo") syscall.Mkfifo(udsPath, 0600) - _, pid := podmanTest.PodmanPID([]string{"run", "-it", "-v", fmt.Sprintf("%s:/h", udsDir), fedoraMinimal, "bash", "-c", sigCatch}) + _, pid := podmanTest.PodmanPID([]string{"run", "-it", "-v", fmt.Sprintf("%s:/h:Z", udsDir), fedoraMinimal, "bash", "-c", sigCatch}) uds, _ := os.OpenFile(udsPath, os.O_RDONLY, 0600) defer uds.Close() -- cgit v1.2.3-54-g00ecf