From 10b63d991c5d0e75d788c58300bb660bbd0c662e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 22 Oct 2026 03:38:46 -0700 Subject: [PATCH] fuse integration: build the external test work dir with MkdirTemp The suite staged cloned tools and generated scripts under a predictable /tmp path another user could pre-create and swap mid-run. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- test/fuse_integration/posix_external_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fuse_integration/posix_external_test.go b/test/fuse_integration/posix_external_test.go index a90eb6bcdf..e6a9973295 100644 --- a/test/fuse_integration/posix_external_test.go +++ b/test/fuse_integration/posix_external_test.go @@ -23,8 +23,8 @@ type ExternalPOSIXTestSuite struct { // NewExternalPOSIXTestSuite creates a new external POSIX test suite runner func NewExternalPOSIXTestSuite(t *testing.T, framework *FuseTestFramework) *ExternalPOSIXTestSuite { - workDir := filepath.Join(os.TempDir(), fmt.Sprintf("posix_external_tests_%d", time.Now().Unix())) - os.MkdirAll(workDir, 0755) + workDir, err := os.MkdirTemp("", "posix_external_tests_") + require.NoError(t, err) return &ExternalPOSIXTestSuite{ framework: framework,