]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix build in airplane mode
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 8 Aug 2014 07:20:20 +0000 (16:20 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 8 Aug 2014 07:20:20 +0000 (16:20 +0900)
LGTM=iant
R=golang-codereviews, adg, iant
CC=golang-codereviews
https://golang.org/cl/122190043

src/cmd/go/vcs_test.go

index f9bf75fef151002e28235fd78edc991e27bcc266..3097c4d1c5ecbc2e6506af36ed5cdf9b735176fb 100644 (file)
@@ -12,6 +12,9 @@ import (
 // Test that RepoRootForImportPath creates the correct RepoRoot for a given importPath.
 // TODO(cmang): Add tests for SVN and BZR.
 func TestRepoRootForImportPath(t *testing.T) {
+       if testing.Short() {
+               t.Skip("skipping test to avoid external network")
+       }
        switch runtime.GOOS {
        case "nacl", "android":
                t.Skipf("no networking available on %s", runtime.GOOS)