cmd/dist: ignore stderr when listing packages to test

Currently any warning will make dist fail because the
text will be considered as part of the package list.

Change-Id: I09a14089cd0448c3779e2f767e9356fe3325d8d9
Reviewed-on: https://go-review.googlesource.com/32111
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: Andrew Gerrand <adg@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Francesc Campoy 2016-10-25 19:09:36 -07:00 committed by Francesc Campoy Flores
parent d89b70d433
commit 6e02750dd6
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ func (t *tester) registerTests() {
if !t.race {
cmd.Args = append(cmd.Args, "cmd")
}
all, err := cmd.CombinedOutput()
all, err := cmd.Output()
if err != nil {
log.Fatalf("Error running go list std cmd: %v, %s", err, all)
}