Skip to content

Commit c6bcdea

Browse files
zikaerohBryan C. Mills
authored and
Bryan C. Mills
committed
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 <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 9d67a94 commit c6bcdea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/go_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ func TestGetGitDefaultBranch(t *testing.T) {
10441044
func TestAccidentalGitCheckout(t *testing.T) {
10451045
testenv.MustHaveExternalNetwork(t)
10461046
testenv.MustHaveExecPath(t, "git")
1047+
testenv.MustHaveExecPath(t, "svn")
10471048

10481049
tg := testgo(t)
10491050
defer tg.cleanup()

0 commit comments

Comments
 (0)