test: no idea whats going on on windows

Carlos Alexandro Becker created

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Change summary

testscript/script_test.go | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

testscript/script_test.go 🔗

@@ -6,7 +6,9 @@ import (
 	"fmt"
 	"net"
 	"os"
+	"os/exec"
 	"path/filepath"
+	"runtime"
 	"strings"
 	"sync"
 	"testing"
@@ -52,6 +54,7 @@ func TestScript(t *testing.T) {
 		"-o", "UserKnownHostsFile=/dev/null",
 		"-o", "IdentityAgent=none",
 		"-o", "IdentitiesOnly=yes",
+		"-o", "ServerAliveInterval=60",
 		"-i", key,
 	}
 
@@ -77,6 +80,11 @@ func TestScript(t *testing.T) {
 						"--",
 					}, args...)...,
 				)
+				if runtime.GOOS == "windows" {
+					cmd := exec.Command("ssh", args...)
+					out, err := cmd.CombinedOutput()
+					ts.Logf("RUNNING %v: output: %s error: %v", cmd.Args, string(out), err)
+				}
 				check(ts, ts.Exec("ssh", args...), neg)
 			},
 			"git": func(ts *testscript.TestScript, neg bool, args []string) {