From 1df9ee0322e33a19a10ed531020c199eb3b49e61 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Mon, 6 Aug 2012 14:56:39 +1000 Subject: [PATCH] test/run: ignore all but .go file during compiledir action R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6454091 --- test/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/run.go b/test/run.go index 2b26a5b010e..e3c305690df 100644 --- a/test/run.go +++ b/test/run.go @@ -314,6 +314,9 @@ func (t *test) run() { return } for _, gofile := range files { + if filepath.Ext(gofile.Name()) != ".go" { + continue + } afile := strings.Replace(gofile.Name(), ".go", "."+letter, -1) out, err := runcmd("go", "tool", gc, "-e", "-D.", "-I.", "-o", afile, filepath.Join(longdir, gofile.Name())) if err != nil {