1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

test/run: ignore all but .go file during compiledir action

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6454091
This commit is contained in:
Alex Brainman 2012-08-06 14:56:39 +10:00
parent 2d2866ee84
commit 1df9ee0322

View 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 {