зеркало из https://github.com/golang/tools.git
go/packages,internal/lsp: skip memory-intensive tests on the linux-arm builder
Updates golang/go#32834 Updates golang/go#30309 Change-Id: I75edb84776216523d00fadfb2e2d94ae08533c03 Reviewed-on: https://go-review.googlesource.com/c/tools/+/192336 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Родитель
ee1fc86af2
Коммит
5d7988b71d
|
@ -26,6 +26,15 @@ import (
|
|||
"golang.org/x/tools/go/packages/packagestest"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
if os.Getenv("GO_BUILDER_NAME") == "linux-arm" {
|
||||
fmt.Fprintf(os.Stderr, "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
// TODO(adonovan): more test cases to write:
|
||||
//
|
||||
// - When the tests fail, make them print a 'cd & load' command
|
||||
|
|
|
@ -7,6 +7,7 @@ package cmd_test
|
|||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -18,6 +19,15 @@ import (
|
|||
"golang.org/x/tools/internal/lsp/tests"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
if os.Getenv("GO_BUILDER_NAME") == "linux-arm" {
|
||||
fmt.Fprintf(os.Stderr, "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
type runner struct {
|
||||
exporter packagestest.Exporter
|
||||
data *tests.Data
|
||||
|
|
|
@ -9,6 +9,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"go/token"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
|
@ -24,6 +25,15 @@ import (
|
|||
"golang.org/x/tools/internal/span"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
if os.Getenv("GO_BUILDER_NAME") == "linux-arm" {
|
||||
fmt.Fprintf(os.Stderr, "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func TestLSP(t *testing.T) {
|
||||
packagestest.TestAll(t, testLSP)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче