Commit 61aaadf2 authored by Robert Griesemer's avatar Robert Griesemer

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

R=r, rsc1, iant2
CC=golang-dev
https://golang.org/cl/4329044
parent dba96cf4
......@@ -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"`)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment