Commit 24de40a8 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

cmd/dist: add more logging details when go list std cmd fails

Change-Id: I12e6990b46ea9c733a5718dc5ca67f1fcd2dec66
Reviewed-on: https://go-review.googlesource.com/10754Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 95919328
...@@ -274,9 +274,9 @@ func (t *tester) registerTests() { ...@@ -274,9 +274,9 @@ func (t *tester) registerTests() {
} else { } else {
// Use a format string to only list packages and commands that have tests. // Use a format string to only list packages and commands that have tests.
const format = "{{if (or .TestGoFiles .XTestGoFiles)}}{{.ImportPath}}{{end}}" const format = "{{if (or .TestGoFiles .XTestGoFiles)}}{{.ImportPath}}{{end}}"
all, err := exec.Command("go", "list", "-f", format, "std", "cmd").Output() all, err := exec.Command("go", "list", "-f", format, "std", "cmd").CombinedOutput()
if err != nil { if err != nil {
log.Fatalf("Error running go list std cmd: %v", err) log.Fatalf("Error running go list std cmd: %v, %s", err, all)
} }
for _, pkg := range strings.Fields(string(all)) { for _, pkg := range strings.Fields(string(all)) {
t.registerStdTest(pkg) t.registerStdTest(pkg)
......
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