File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ import (
26
26
"golang.org/x/tools/go/packages/packagestest"
27
27
)
28
28
29
+ func TestMain (m * testing.M ) {
30
+ if os .Getenv ("GO_BUILDER_NAME" ) == "linux-arm" {
31
+ fmt .Fprintf (os .Stderr , "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n " )
32
+ os .Exit (0 )
33
+ }
34
+
35
+ os .Exit (m .Run ())
36
+ }
37
+
29
38
// TODO(adonovan): more test cases to write:
30
39
//
31
40
// - When the tests fail, make them print a 'cd & load' command
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ package cmd_test
7
7
import (
8
8
"bytes"
9
9
"context"
10
+ "fmt"
10
11
"io/ioutil"
11
12
"os"
12
13
"path/filepath"
@@ -18,6 +19,15 @@ import (
18
19
"golang.org/x/tools/internal/lsp/tests"
19
20
)
20
21
22
+ func TestMain (m * testing.M ) {
23
+ if os .Getenv ("GO_BUILDER_NAME" ) == "linux-arm" {
24
+ fmt .Fprintf (os .Stderr , "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n " )
25
+ os .Exit (0 )
26
+ }
27
+
28
+ os .Exit (m .Run ())
29
+ }
30
+
21
31
type runner struct {
22
32
exporter packagestest.Exporter
23
33
data * tests.Data
Original file line number Diff line number Diff line change 9
9
"context"
10
10
"fmt"
11
11
"go/token"
12
+ "os"
12
13
"os/exec"
13
14
"path/filepath"
14
15
"sort"
@@ -24,6 +25,15 @@ import (
24
25
"golang.org/x/tools/internal/span"
25
26
)
26
27
28
+ func TestMain (m * testing.M ) {
29
+ if os .Getenv ("GO_BUILDER_NAME" ) == "linux-arm" {
30
+ fmt .Fprintf (os .Stderr , "skipping test: linux-arm builder lacks sufficient memory (https://golang.org/issue/32834)\n " )
31
+ os .Exit (0 )
32
+ }
33
+
34
+ os .Exit (m .Run ())
35
+ }
36
+
27
37
func TestLSP (t * testing.T ) {
28
38
packagestest .TestAll (t , testLSP )
29
39
}
You can’t perform that action at this time.
0 commit comments