Skip to content

Commit

Permalink
go/internal/gcimporter: only run compile test if go tool is available
Browse files Browse the repository at this point in the history
Fixes build dashboard failures for android and nacl.

Change-Id: Id13896570061d3d8186f7b666ca1c37bcc789b0f
Reviewed-on: https://go-review.googlesource.com/12703
Reviewed-by: David Crawshaw <[email protected]>
  • Loading branch information
ianlancetaylor committed Jul 27, 2015
1 parent 4c94645 commit 3f98b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/go/internal/gcimporter/gcimporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package gcimporter

import (
"fmt"
"internal/testenv"
"io/ioutil"
"os"
"os/exec"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3f98b6a

Please sign in to comment.