mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 22:11:39 +02:00
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>
This commit is contained in:
1 parent
245fada966
commit
10b63d991c
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user