Comment 4 for bug 1962170

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

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)