I applied this simple patch, but the tests still fail. The log output is hard to parse, I'm attaching it.
--- a/internal/testutils/samba.go +++ b/internal/testutils/samba.go @@ -18,7 +18,7 @@ func SetupSmb(port int, sysvolDir string) func() { dir, cleanup := mkSmbDirWithConf(smbPort, sysvolDir)
// #nosec:G204 - we control the directory we run smbd on (on tests) - cmd := exec.Command("smbd", "-FS", "-s", filepath.Join(dir, "smbd.conf")) + cmd := exec.Command("smbd", "-F", "--debug-stdout", "-s", filepath.Join(dir, "smbd.conf")) stderr, err := cmd.StderrPipe() if err != nil { log.Fatalf("Setup: can’t get smb output: %v", err)
I applied this simple patch, but the tests still fail. The log output is hard to parse, I'm attaching it.
--- a/internal/ testutils/ samba.go testutils/ samba.go f(smbPort, sysvolDir)
+++ b/internal/
@@ -18,7 +18,7 @@ func SetupSmb(port int, sysvolDir string) func() {
dir, cleanup := mkSmbDirWithCon
// #nosec:G204 - we control the directory we run smbd on (on tests) "smbd", "-FS", "-s", filepath.Join(dir, "smbd.conf")) "smbd", "-F", "--debug-stdout", "-s", filepath.Join(dir, "smbd.conf"))
log.Fatalf( "Setup: can’t get smb output: %v", err)
- cmd := exec.Command(
+ cmd := exec.Command(
stderr, err := cmd.StderrPipe()
if err != nil {