From 0ddae4a66796f6843221d75d0d8fbbb680d600be Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 24 May 2023 19:31:26 +0000 Subject: [PATCH] Revert "fix: remove if for windows" This reverts commit 5776fde194d675d25336967e5f89c8fd9a5e7b4f. --- testscript/script_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testscript/script_test.go b/testscript/script_test.go index 219065826145f674737015c79e315a6516782f54..e1737c889f08627bf14192bc02c88ce60474d901 100644 --- a/testscript/script_test.go +++ b/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) {