Skip to content

Commit

Permalink
cmd/dist: add command output for dist tests
Browse files Browse the repository at this point in the history
It is very useful to see which test commands are executed.
This is of global use, but I wrote it for golang#11654.

Change-Id: I9bfc8e55d5bef21f4c49b917f58bc9a44aefcade
Reviewed-on: https://go-review.googlesource.com/12510
Reviewed-by: Russ Cox <rsc@golang.org>
  • Loading branch information
ikrabbe authored and rsc committed Jul 22, 2015
1 parent bad52b3 commit 1e9f59a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/dist/test.go 100644 → 100755
Expand Up @@ -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
}

Expand Down

0 comments on commit 1e9f59a

Please sign in to comment.