aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers/mount_unmount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2022-01-22 11:46:08 +0100
committerJakob Unterwurzacher2022-01-22 11:46:08 +0100
commit3ca2b1983dbab14e3769efd126098cbca6fb2ffd (patch)
treedae922252cace1b29f721a18fdf908a9c617bb50 /tests/test_helpers/mount_unmount.go
parent5f955423b736d56b5b741fbd1b853c83044aa0fe (diff)
tests: enable -fusedebug if FUSEDEBUG env is set
Diffstat (limited to 'tests/test_helpers/mount_unmount.go')
-rw-r--r--tests/test_helpers/mount_unmount.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go
index 8ff2564..afd33f1 100644
--- a/tests/test_helpers/mount_unmount.go
+++ b/tests/test_helpers/mount_unmount.go
@@ -37,7 +37,10 @@ type mountInfo struct {
func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
args = append(args, extraArgs...)
- //args = append(args, "-fusedebug")
+ if _, isset := os.LookupEnv("FUSEDEBUG"); isset {
+ fmt.Println("FUSEDEBUG is set, enabling -fusedebug")
+ args = append(args, "-fusedebug")
+ }
//args = append(args, "-d")
args = append(args, c, p)