From 0ed48bc2ae56fd98279482485641b3c029017ffe Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 24 May 2023 17:53:59 +0000 Subject: [PATCH] test: no idea whats going on on windows Signed-off-by: Carlos Alexandro Becker --- testscript/script_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testscript/script_test.go b/testscript/script_test.go index ce4f9b33a5dff3d9f135de8a3eb17390b3b2c9e0..e118af680832daec0608067c73d43ae3217d9a56 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" @@ -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) {