From: Dave Cheney Date: Tue, 15 Jul 2014 04:45:59 +0000 (+1000) Subject: cmd/go: skip vcs tests on nacl and android X-Git-Tag: go1.4beta1~1097 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c213b8864fa8b48225bac97245031613db89572a;p=gostls13.git cmd/go: skip vcs tests on nacl and android Fixes build failures on nacl/* and android/* platforms. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://golang.org/cl/113140043 --- diff --git a/src/cmd/go/vcs_test.go b/src/cmd/go/vcs_test.go index 820e478121..f9bf75fef1 100644 --- a/src/cmd/go/vcs_test.go +++ b/src/cmd/go/vcs_test.go @@ -5,12 +5,17 @@ package main import ( + "runtime" "testing" ) // Test that RepoRootForImportPath creates the correct RepoRoot for a given importPath. // TODO(cmang): Add tests for SVN and BZR. func TestRepoRootForImportPath(t *testing.T) { + switch runtime.GOOS { + case "nacl", "android": + t.Skipf("no networking available on %s", runtime.GOOS) + } tests := []struct { path string want *repoRoot