Fixes #17697.
Change-Id: I3c47e139b09bde81566e29a1ac0ec8c58d55a34a
Reviewed-on: https://go-review.googlesource.com/32539
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
defer close(results)
for _, dir := range []string{
runtime.GOROOT(),
- //"/Users/gri/src",
} {
walkDirs(t, dir, func(filename string) {
if debug {
}
} else if fi.IsDir() && fi.Name() != "testdata" {
path := filepath.Join(dir, fi.Name())
- if !strings.Contains(path, "go/test") {
+ if !strings.HasSuffix(path, "/test") {
dirs = append(dirs, path)
}
}