Commit 3f98b6a5 authored by Ian Lance Taylor's avatar Ian Lance Taylor

go/internal/gcimporter: only run compile test if go tool is available

Fixes build dashboard failures for android and nacl.

Change-Id: Id13896570061d3d8186f7b666ca1c37bcc789b0f
Reviewed-on: https://go-review.googlesource.com/12703Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
parent 4c946452
......@@ -6,6 +6,7 @@ package gcimporter
import (
"fmt"
"internal/testenv"
"io/ioutil"
"os"
"os/exec"
......@@ -33,6 +34,7 @@ func skipSpecialPlatforms(t *testing.T) {
}
func compile(t *testing.T, dirname, filename string) string {
testenv.MustHaveGoBuild(t)
cmd := exec.Command("go", "tool", "compile", filename)
cmd.Dir = dirname
out, err := cmd.CombinedOutput()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment