diff options
author | Robert Griesemer <gri@golang.org> | 2011-03-30 09:46:11 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2011-03-30 09:46:11 -0700 |
commit | 61aaadf2175ec58e91d1188c1986d71c1d853389 (patch) | |
tree | 8a8a9996b92d82e809fdeda154e601c85d8116b4 | |
parent | dba96cf411bc06cc3d75be160d420fc457b4a598 (diff) | |
download | go-61aaadf2175ec58e91d1188c1986d71c1d853389.tar.gz go-61aaadf2175ec58e91d1188c1986d71c1d853389.zip |
gotest: exclude . files when parsing directories (per r's suggestion)
R=r, rsc1, iant2
CC=golang-dev
https://golang.org/cl/4329044
-rw-r--r-- | src/cmd/gotest/gotest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index ae33eb7181..08f9ed4ee9 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -177,7 +177,7 @@ func setEnvironment() { func getTestFileNames() { names := flag.Args() if len(names) == 0 { - names = filepath.Glob("*_test.go") + names = filepath.Glob("[^.]*_test.go") if len(names) == 0 { Fatalf(`no test files found: no match for "*_test.go"`) } |