diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-10-31 14:58:40 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-31 19:20:21 +0000 |
| commit | 3aebf682e4928ab490b64b3ba6729c78c9d066ba (patch) | |
| tree | 28009f1b7455de58ed0c3fb2d30a7531a1a429aa /src/cmd/api | |
| parent | 0a6c4c87404ecb018faf002919e5d5db04c69ee2 (diff) | |
| download | go-3aebf682e4928ab490b64b3ba6729c78c9d066ba.tar.xz | |
cmd/api: skip tests when 'os/exec' is supported but 'go build' is not
This may fix the android-.*-emu builders, which are currently broken.
For #47257.
Change-Id: I370dad2cb8031f8f5fdfbeb9c284c4f79f58d929
Reviewed-on: https://go-review.googlesource.com/c/go/+/446638
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/api')
| -rw-r--r-- | src/cmd/api/goapi_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/api/goapi_test.go b/src/cmd/api/goapi_test.go index f8ee520bda..464dc68322 100644 --- a/src/cmd/api/goapi_test.go +++ b/src/cmd/api/goapi_test.go @@ -22,6 +22,10 @@ func TestMain(m *testing.M) { os.Stdout.WriteString("skipping test: platform cannot exec") os.Exit(0) } + if !testenv.HasGoBuild() { + os.Stdout.WriteString("skipping test: platform cannot 'go build' to import std packages") + os.Exit(0) + } flag.Parse() for _, c := range contexts { |
