mirror of
https://github.com/golang/go
synced 2024-11-18 15:04:44 -07:00
cmd/godoc: skip tests on arm platforms
Skip tests on arm platforms. The godoc tests require large amounts of memory, in excess of 700mb in -index mode which none of the arm builders have spare. Because of their requirements the tests can be killed by the test runner leaving stray godoc processes spinning in swap trying to -index. Change-Id: I1544d56e9d9aabbbaac21adeebfb9e2690bd2da5 Reviewed-on: https://go-review.googlesource.com/7540 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
e4a1c78f0f
commit
0ee0dd6ea8
@ -70,6 +70,9 @@ var godocTests = []struct {
|
|||||||
// TODO(adonovan): opt: do this at most once, and do the cleanup
|
// TODO(adonovan): opt: do this at most once, and do the cleanup
|
||||||
// exactly once. How though? There's no atexit.
|
// exactly once. How though? There's no atexit.
|
||||||
func buildGodoc(t *testing.T) (bin string, cleanup func()) {
|
func buildGodoc(t *testing.T) (bin string, cleanup func()) {
|
||||||
|
if runtime.GOARCH == "arm" {
|
||||||
|
t.Skip("skipping test on arm platforms; too slow")
|
||||||
|
}
|
||||||
tmp, err := ioutil.TempDir("", "godoc-regtest-")
|
tmp, err := ioutil.TempDir("", "godoc-regtest-")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user