Revert "fix: remove if for windows"

Carlos Alexandro Becker created

This reverts commit 5776fde194d675d25336967e5f89c8fd9a5e7b4f.

Change summary

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

Detailed changes

testscript/script_test.go 🔗

@@ -6,7 +6,9 @@ import (
 	"fmt"
 	"net"
 	"os"
+	"os/exec"
 	"path/filepath"
+	"runtime"
 	"strings"
 	"sync"
 	"testing"
@@ -72,6 +74,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) {