From c213b8864fa8b48225bac97245031613db89572a Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Tue, 15 Jul 2014 14:45:59 +1000 Subject: [PATCH] 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 --- src/cmd/go/vcs_test.go | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.48.1