summaryrefslogtreecommitdiff
path: root/test/run.go
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2012-08-06 14:56:39 +1000
committerAlex Brainman <alex.brainman@gmail.com>2012-08-06 14:56:39 +1000
commit554ded0614e729457b6d853ff0e99879d4ca1f2b (patch)
tree127e1cf2768863588583c71d620551b8882f7223 /test/run.go
parent1c13726edfd3591a576a6408368ab285c8665c96 (diff)
downloadgo-554ded0614e729457b6d853ff0e99879d4ca1f2b.tar.gz
test/run: ignore all but .go file during compiledir action
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6454091
Diffstat (limited to 'test/run.go')
-rw-r--r--test/run.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run.go b/test/run.go
index 2b26a5b01..e3c305690 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 {