summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2021-11-03 16:37:49 +0100
committerMiloslav Trmač <mitr@redhat.com>2022-01-03 12:31:47 +0100
commit90e74e794cc0c2c34112877821ed9ff0e7f51c28 (patch)
tree07458228d1b4df7b792080cafa62767eb0f0c46f /test/utils
parentee146a9ab0721ec6fe2c6e3092928c34a9b3b6d7 (diff)
downloadpodman-90e74e794cc0c2c34112877821ed9ff0e7f51c28.tar.gz
podman-90e74e794cc0c2c34112877821ed9ff0e7f51c28.tar.bz2
podman-90e74e794cc0c2c34112877821ed9ff0e7f51c28.zip
Avoid collisions on RemoteSocket paths
Add lock files and re-generate the UUID if we are not a known-unique user of the socket path. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/utils.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/utils/utils.go b/test/utils/utils.go
index f41024072..a73bdb856 100644
--- a/test/utils/utils.go
+++ b/test/utils/utils.go
@@ -41,6 +41,7 @@ type PodmanTest struct {
RemotePodmanBinary string
RemoteSession *os.Process
RemoteSocket string
+ RemoteSocketLock string // If not "", should be removed _after_ RemoteSocket is removed
RemoteCommand *exec.Cmd
ImageCacheDir string
ImageCacheFS string