]> Cypherpunks repositories - gostls13.git/commitdiff
test/run: ignore all but .go file during compiledir action
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 6 Aug 2012 04:56:39 +0000 (14:56 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 6 Aug 2012 04:56:39 +0000 (14:56 +1000)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6454091

test/run.go

index 2b26a5b010ed527687b4370b4609927d1784f09a..e3c305690df9aa96639a9f050bdebacd808f2407 100644 (file)
@@ -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 {