Commit 1df9ee03 authored by Alex Brainman's avatar Alex Brainman

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

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6454091
parent 2d2866ee
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment