mirror of
https://github.com/golang/go
synced 2024-11-23 22:30:05 -07:00
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
This commit is contained in:
parent
c0a824aad6
commit
c213b8864f
@ -5,12 +5,17 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Test that RepoRootForImportPath creates the correct RepoRoot for a given importPath.
|
// Test that RepoRootForImportPath creates the correct RepoRoot for a given importPath.
|
||||||
// TODO(cmang): Add tests for SVN and BZR.
|
// TODO(cmang): Add tests for SVN and BZR.
|
||||||
func TestRepoRootForImportPath(t *testing.T) {
|
func TestRepoRootForImportPath(t *testing.T) {
|
||||||
|
switch runtime.GOOS {
|
||||||
|
case "nacl", "android":
|
||||||
|
t.Skipf("no networking available on %s", runtime.GOOS)
|
||||||
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
path string
|
path string
|
||||||
want *repoRoot
|
want *repoRoot
|
||||||
|
Loading…
Reference in New Issue
Block a user