From: Alex Brainman Date: Mon, 6 Aug 2012 04:56:39 +0000 (+1000) Subject: test/run: ignore all but .go file during compiledir action X-Git-Tag: go1.1rc2~2695 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1df9ee0322e33a19a10ed531020c199eb3b49e61;p=gostls13.git test/run: ignore all but .go file during compiledir action R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6454091 --- diff --git a/test/run.go b/test/run.go index 2b26a5b010..e3c305690d 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 {