diff options
Diffstat (limited to 'test/e2e/rootless_test.go')
-rw-r--r-- | test/e2e/rootless_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go index 84d5cd6f1..72ca37d6e 100644 --- a/test/e2e/rootless_test.go +++ b/test/e2e/rootless_test.go @@ -6,6 +6,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "syscall" . "github.com/onsi/ginkgo" @@ -153,6 +154,8 @@ var _ = Describe("Podman rootless", func() { runRootlessHelper := func(args []string) { f := func(rootlessTest PodmanTest, xdgRuntimeDir string, home string, mountPath string) { + runtime.LockOSThread() + defer runtime.UnlockOSThread() env := os.Environ() env = append(env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", xdgRuntimeDir)) env = append(env, fmt.Sprintf("HOME=%s", home)) |