tests: enable -fusedebug if FUSEDEBUG env is set

This commit is contained in:
Jakob Unterwurzacher 2022-01-22 11:46:08 +01:00
parent 5f955423b7
commit 3ca2b1983d

View File

@ -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)