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 2b26a5b..e3c3056 100644
--- a/test/run.go
+++ b/test/run.go
@@ -314,6 +314,9 @@
 			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 {