diff --git a/cmd/godoc/godoc_test.go b/cmd/godoc/godoc_test.go index 28e1bae8ca..c8efaab336 100644 --- a/cmd/godoc/godoc_test.go +++ b/cmd/godoc/godoc_test.go @@ -32,6 +32,10 @@ func buildGodoc(t *testing.T) (bin string, cleanup func()) { if runtime.GOARCH == "arm" { t.Skip("skipping test on arm platforms; too slow") } + if runtime.GOOS == "android" { + t.Skipf("the dependencies are not available on android") + } + tmp, err := ioutil.TempDir("", "godoc-regtest-") if err != nil { t.Fatal(err) diff --git a/cmd/gorename/gorename_test.go b/cmd/gorename/gorename_test.go index dc5f9f8b35..ff9a1957bf 100644 --- a/cmd/gorename/gorename_test.go +++ b/cmd/gorename/gorename_test.go @@ -312,6 +312,9 @@ func g() { fmt.Println(test.Foo(3)) } // buildGorename builds the gorename executable. // It returns its path, and a cleanup function. func buildGorename(t *testing.T) (tmp, bin string, cleanup func()) { + if runtime.GOOS == "android" { + t.Skipf("the dependencies are not available on android") + } tmp, err := ioutil.TempDir("", "gorename-regtest-") if err != nil { diff --git a/godoc/static/gen_test.go b/godoc/static/gen_test.go index 7f14d13071..1889b1699a 100644 --- a/godoc/static/gen_test.go +++ b/godoc/static/gen_test.go @@ -7,12 +7,16 @@ package static import ( "bytes" "io/ioutil" + "runtime" "strconv" "testing" "unicode" ) func TestStaticIsUpToDate(t *testing.T) { + if runtime.GOOS == "android" { + t.Skip("files not available on android") + } oldBuf, err := ioutil.ReadFile("static.go") if err != nil { t.Errorf("error while reading static.go: %v\n", err) diff --git a/refactor/rename/rename_test.go b/refactor/rename/rename_test.go index 87134a4d1d..68ebf63bae 100644 --- a/refactor/rename/rename_test.go +++ b/refactor/rename/rename_test.go @@ -1277,10 +1277,10 @@ func main() { } func TestDiff(t *testing.T) { - if runtime.GOOS == "windows" { - t.Skipf("diff tool non-existent for windows on builders") - } - if runtime.GOOS == "plan9" { + switch runtime.GOOS { + case "windows", "android": + t.Skipf("diff tool non-existent for %s on builders", runtime.GOOS) + case "plan9": t.Skipf("plan9 diff tool doesn't support -u flag") }