From: Ingo Krabbe Date: Wed, 22 Jul 2015 07:23:21 +0000 (+0200) Subject: cmd/dist: add command output for dist tests X-Git-Tag: go1.5beta3~118 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1e9f59a7da374b24b5512cd7fcf1f605df4f862d;p=gostls13.git 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 --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go old mode 100644 new mode 100755 index 3a2da0e9fb..a73a1b3966 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -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 }