]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: add more logging details when go list std cmd fails
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Jun 2015 15:11:34 +0000 (08:11 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Jun 2015 15:19:29 +0000 (15:19 +0000)
Change-Id: I12e6990b46ea9c733a5718dc5ca67f1fcd2dec66
Reviewed-on: https://go-review.googlesource.com/10754
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go

index 07be97547f6cd89f2b759935e421a7a100782ed8..9ae9398cc757e8e819bc3c8e0cbbc331beef32a2 100644 (file)
@@ -274,9 +274,9 @@ func (t *tester) registerTests() {
        } else {
                // Use a format string to only list packages and commands that have tests.
                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 {
-                       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)) {
                        t.registerStdTest(pkg)