From c80e74ef20b29f9d66efc7fa7f21669be2be23af Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 24 May 2023 19:33:36 +0000 Subject: [PATCH] chore: trying something out Signed-off-by: Carlos Alexandro Becker --- testscript/script_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testscript/script_test.go b/testscript/script_test.go index e1737c889f08627bf14192bc02c88ce60474d901..74726ce0fc62be0d48764e65a1614e7a3e219fd2 100644 --- a/testscript/script_test.go +++ b/testscript/script_test.go @@ -75,11 +75,13 @@ func TestScript(t *testing.T) { }, args...)..., ) if runtime.GOOS == "windows" { - cmd := exec.Command("ssh", args...) + cmd := exec.Command("ssh.exe", args...) out, err := cmd.CombinedOutput() - ts.Logf("RUNNING %v: output: %s error: %v", cmd.Args, string(out), err) + ts.Logf("WINDOWS RAN %v:\n\tOUTPUT: %s\n\tERROR: %v", cmd.Args, string(out), err) + check(ts, err, neg) + } else { + check(ts, ts.Exec("ssh", args...), neg) } - check(ts, ts.Exec("ssh", args...), neg) }, "git": func(ts *testscript.TestScript, neg bool, args []string) { ts.Setenv(