From a49f29219b30e6af3bf4c42106a938c7424161e3 Mon Sep 17 00:00:00 2001 From: Francesco Mazzoli Date: Fri, 3 Oct 2025 09:03:58 +0000 Subject: [PATCH] Do not start FUSE if we're running tests with kmod mount --- go/terntests/terntests.go | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/go/terntests/terntests.go b/go/terntests/terntests.go index e0bfb19d..7faa736c 100644 --- a/go/terntests/terntests.go +++ b/go/terntests/terntests.go @@ -83,7 +83,6 @@ type RunTests struct { registryIp string registryPort uint16 mountPoint string - fuseMountPoint string kmod bool short bool filter *regexp.Regexp @@ -1286,20 +1285,6 @@ func main() { }() } - fuseMountPoint := procs.StartFuse(l, &managedprocess.FuseOpts{ - Exe: goExes.FuseExe, - Path: path.Join(*dataDir, "fuse"), - LogLevel: level, - Wait: true, - RegistryAddress: registryAddress, - Profile: *profile, - ShardTimeouts: shardTimeouts, - CDCTimeouts: cdcTimeouts, - BlockTimeouts: blockTimeouts, - CloseTrackerObject: *closeTrackerObject, - SetUid: true, - }) - var mountPoint string if *kmod { mountPoint = path.Join(*dataDir, "kmod", "mnt") @@ -1317,7 +1302,19 @@ func main() { } }() } else { - mountPoint = fuseMountPoint + mountPoint = procs.StartFuse(l, &managedprocess.FuseOpts{ + Exe: goExes.FuseExe, + Path: path.Join(*dataDir, "fuse"), + LogLevel: level, + Wait: true, + RegistryAddress: registryAddress, + Profile: *profile, + ShardTimeouts: shardTimeouts, + CDCTimeouts: cdcTimeouts, + BlockTimeouts: blockTimeouts, + CloseTrackerObject: *closeTrackerObject, + SetUid: true, + }) } fmt.Printf("operational 🤖\n") @@ -1375,7 +1372,6 @@ func main() { registryIp: "127.0.0.1", registryPort: registryPort, mountPoint: mountPoint, - fuseMountPoint: fuseMountPoint, kmod: *kmod, short: *short, filter: filterRe,