From 7d0918e23598496bcecf68008da7883f40330fbe Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 22 Oct 2026 03:46:31 -0700 Subject: [PATCH] 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> --- test/fuse_integration/framework.go | 2 ++ test/fuse_integration/framework_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/test/fuse_integration/framework.go b/test/fuse_integration/framework.go index 4505f8c1f7..82a566af76 100644 --- a/test/fuse_integration/framework.go +++ b/test/fuse_integration/framework.go @@ -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 } diff --git a/test/fuse_integration/framework_test.go b/test/fuse_integration/framework_test.go index cfb47a5375..23af7e9dd2 100644 --- a/test/fuse_integration/framework_test.go +++ b/test/fuse_integration/framework_test.go @@ -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 {