1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:30:26 -07:00

gotest: exclude . files when parsing directories (per r's suggestion)

R=r, rsc1, iant2
CC=golang-dev
https://golang.org/cl/4329044
This commit is contained in:
Robert Griesemer 2011-03-30 09:46:11 -07:00
parent dba96cf411
commit 61aaadf217

View File

@ -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"`)
}