]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip vcs tests on nacl and android
authorDave Cheney <dave@cheney.net>
Tue, 15 Jul 2014 04:45:59 +0000 (14:45 +1000)
committerDave Cheney <dave@cheney.net>
Tue, 15 Jul 2014 04:45:59 +0000 (14:45 +1000)
        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

index 820e478121e357e635bafcc8f05700d3b613455c..f9bf75fef151002e28235fd78edc991e27bcc266 100644 (file)
@@ -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