Skip to content

Commit 0983da0

Browse files
committed
skip the git test on Windows
1 parent ef4043a commit 0983da0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

get_git_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os"
88
"os/exec"
99
"path/filepath"
10+
"runtime"
1011
"strings"
1112
"testing"
1213
)
@@ -296,6 +297,11 @@ func TestGitGetter_submodule(t *testing.T) {
296297
}
297298

298299
func TestGitGetter_setupGitEnv_sshKey(t *testing.T) {
300+
if runtime.GOOS == "windows" {
301+
t.Skipf("skipping on windows since the test requires sh")
302+
return
303+
}
304+
299305
cmd := exec.Command("/bin/sh", "-c", "echo $GIT_SSH_COMMAND")
300306
setupGitEnv(cmd, "/tmp/foo.pem")
301307
out, err := cmd.Output()

0 commit comments

Comments
 (0)