1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:14:43 -07:00

cmd/dist: add command output for dist tests

It is very useful to see which test commands are executed.
This is of global use, but I wrote it for #11654.

Change-Id: I9bfc8e55d5bef21f4c49b917f58bc9a44aefcade
Reviewed-on: https://go-review.googlesource.com/12510
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Ingo Krabbe 2015-07-22 09:23:21 +02:00 committed by Russ Cox
parent bad52b352a
commit 1e9f59a7da

3
src/cmd/dist/test.go vendored Normal file → Executable file
View File

@ -519,6 +519,9 @@ func (t *tester) dirCmd(dir string, bin string, args ...string) *exec.Cmd {
}
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if vflag > 1 {
errprintf("%s\n", strings.Join(cmd.Args, " "))
}
return cmd
}