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:
parent
dba96cf411
commit
61aaadf217
@ -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"`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user