From 61aaadf2175ec58e91d1188c1986d71c1d853389 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 30 Mar 2011 09:46:11 -0700 Subject: [PATCH] gotest: exclude . files when parsing directories (per r's suggestion) R=r, rsc1, iant2 CC=golang-dev https://golang.org/cl/4329044 --- src/cmd/gotest/gotest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`) }