fuse integration: normalize config in Setup and clean the work dir too

Setup(nil) panicked on config.EnableDebug and external-mount Cleanup left
the temp dir behind; use the stored config for the start* calls and remove
tempDir alongside the external work dir.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Chris LuandDevin committed 2026-10-22 03:46:31 -07:00
1 parent c7b5bcfc7e
commit 7d0918e235
2 files changed
+3

No files matched your search

+2
View File
@@ -90,6 +90,7 @@ func (f *FuseTestFramework) Setup(config *TestConfig) error {
if config != nil {
f.config = config
}
config = f.config
// Check if we should skip cluster setup and use existing mount
if os.Getenv("TEST_SKIP_CLUSTER_SETUP") == "true" {
@@ -206,6 +207,7 @@ func (f *FuseTestFramework) Cleanup() {
if f.externalMount {
if !f.config.SkipCleanup {
os.RemoveAll(f.mountPoint)
os.RemoveAll(f.tempDir)
}
return
}
+1
View File
@@ -137,6 +137,7 @@ func (f *FuseTestFramework) Setup(config *TestConfig) error {
if config != nil {
f.config = config
}
config = f.config
dirs := []string{f.mountPoint, f.logDir, f.dataDir}
for _, dir := range dirs {