mirror of
https://github.com/golang/go
synced 2024-09-29 04:14:27 -06:00
cmd/go: add detail to test failures
For #50892 Change-Id: I14ff1c43b39687a0ba5e668ee962cecfb49e4beb Reviewed-on: https://go-review.googlesource.com/c/go/+/381836 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
5522f8c8e6
commit
a6a7c7a1fd
@ -133,7 +133,7 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
gotool, err := testenv.GoTool()
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
fmt.Fprintln(os.Stderr, "locating go tool: ", err)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
|
@ -902,7 +902,7 @@ func (ts *testScript) cmdStale(want simpleStatus, args []string) {
|
||||
tmpl := "{{if .Error}}{{.ImportPath}}: {{.Error.Err}}{{else}}"
|
||||
switch want {
|
||||
case failure:
|
||||
tmpl += "{{if .Stale}}{{.ImportPath}} is unexpectedly stale{{end}}"
|
||||
tmpl += "{{if .Stale}}{{.ImportPath}} is unexpectedly stale: {{.StaleReason}}{{end}}"
|
||||
case success:
|
||||
tmpl += "{{if not .Stale}}{{.ImportPath}} is unexpectedly NOT stale{{end}}"
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user