diff options
author | baude <bbaude@redhat.com> | 2019-04-19 08:33:18 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-05-07 14:06:02 -0500 |
commit | bc7b1ca03da88473c10e59197becd812cf341663 (patch) | |
tree | 13d33a731ca50cd58b71ff7592770ae2afb9807d /test/e2e/common_test.go | |
parent | 7b67c9601e1eab6c881ac44503c285c71b0a4a3a (diff) | |
download | podman-bc7b1ca03da88473c10e59197becd812cf341663.tar.gz podman-bc7b1ca03da88473c10e59197becd812cf341663.tar.bz2 podman-bc7b1ca03da88473c10e59197becd812cf341663.zip |
enable integration tests for remote-client
first pass at enabling a swath of integration tests for the
remote-client.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index a6fc211f6..3c7675b35 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -264,9 +264,14 @@ func PodmanTestCreateUtil(tempDir string, remote bool) *PodmanTestIntegration { } if remote { p.PodmanTest.RemotePodmanBinary = podmanRemoteBinary + uuid := stringid.GenerateNonCryptoID() if !rootless.IsRootless() { - uuid := stringid.GenerateNonCryptoID() p.VarlinkEndpoint = fmt.Sprintf("unix:/run/podman/io.podman-%s", uuid) + } else { + runtimeDir := os.Getenv("XDG_RUNTIME_DIR") + socket := fmt.Sprintf("io.podman-%s", uuid) + fqpath := filepath.Join(runtimeDir, socket) + p.VarlinkEndpoint = fmt.Sprintf("unix:%s", fqpath) } } |