From: zikaeroh Date: Thu, 12 Mar 2020 00:17:57 +0000 (-0700) Subject: cmd/go: check for 'svn' binary in PATH in TestAccidentalGitCheckout X-Git-Tag: go1.15beta1~873 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6bcdeafd2a2f11373dec9a82fccc75d332cd0cc;p=gostls13.git cmd/go: check for 'svn' binary in PATH in TestAccidentalGitCheckout This test requires subversion to run, but does not check to see if it's available before running as it does for git. Call testenv.MustHaveExecPath to check beforehand to allow the test to be skipped if the svn binary does not exist. Change-Id: I16ae104621b221fc6e96f6c7dcd71bf406caa0c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/223082 Reviewed-by: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 66354f7ff5..53027b7ccb 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -1044,6 +1044,7 @@ func TestGetGitDefaultBranch(t *testing.T) { func TestAccidentalGitCheckout(t *testing.T) { testenv.MustHaveExternalNetwork(t) testenv.MustHaveExecPath(t, "git") + testenv.MustHaveExecPath(t, "svn") tg := testgo(t) defer tg.cleanup()