]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: fix -test.run argument for new 'go test'
authorRuss Cox <rsc@golang.org>
Thu, 15 Dec 2011 23:21:38 +0000 (18:21 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 15 Dec 2011 23:21:38 +0000 (18:21 -0500)
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

src/pkg/os/exec/exec_test.go

index 8f63653c014d58d9f7708592b7516318fd964932..d26127c7af2584e1356e75263eda68ada3880c36 100644 (file)
@@ -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()...)