mirror of
https://github.com/golang/go
synced 2024-11-18 07:04:52 -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:
parent
bad52b352a
commit
1e9f59a7da
3
src/cmd/dist/test.go
vendored
Normal file → Executable file
3
src/cmd/dist/test.go
vendored
Normal file → Executable 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user