From: Russ Cox Date: Thu, 15 Dec 2011 23:21:38 +0000 (-0500) Subject: os/exec: fix -test.run argument for new 'go test' X-Git-Tag: weekly.2011-12-22~164 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b53856c16dc1facdc5c0257bd8b0ef4cff13d350;p=gostls13.git os/exec: fix -test.run argument for new 'go test' In 'go test' I deleted the leading package. prefix from all the test names, since it contained no actual information. Adjust the -test.run argument accordingly. This will still work with the current gotest too, since the argument is an unanchored pattern. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5491058 --- diff --git a/src/pkg/os/exec/exec_test.go b/src/pkg/os/exec/exec_test.go index 8f63653c01..d26127c7af 100644 --- a/src/pkg/os/exec/exec_test.go +++ b/src/pkg/os/exec/exec_test.go @@ -18,7 +18,7 @@ import ( ) func helperCommand(s ...string) *Cmd { - cs := []string{"-test.run=exec.TestHelperProcess", "--"} + cs := []string{"-test.run=TestHelperProcess", "--"} cs = append(cs, s...) cmd := Command(os.Args[0], cs...) cmd.Env = append([]string{"GO_WANT_HELPER_PROCESS=1"}, os.Environ()...)