From 3ca2b1983dbab14e3769efd126098cbca6fb2ffd Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 22 Jan 2022 11:46:08 +0100 Subject: [PATCH] tests: enable -fusedebug if FUSEDEBUG env is set --- tests/test_helpers/mount_unmount.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)