1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:18:32 -06:00

runtime: if runtime is stale while testing, show cmd/go output

Update #19062.

Change-Id: If6a4c4f8d12e148b162256f13a8ee423f6e30637
Reviewed-on: https://go-review.googlesource.com/36918
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2017-02-13 11:46:48 -08:00
parent 5a303aa1e9
commit 40c27ed5bc

View File

@ -164,6 +164,7 @@ func checkStaleRuntime(t *testing.T) {
return
}
if string(out) != "false\n" {
t.Logf("go list -f {{.Stale}} runtime:\n%s", out)
staleRuntimeErr = fmt.Errorf("Stale runtime.a. Run 'go install runtime'.")
}
})