mirror of
https://github.com/golang/go
synced 2024-11-22 06:44:40 -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:
parent
2d2866ee84
commit
1df9ee0322
@ -314,6 +314,9 @@ func (t *test) run() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, gofile := range files {
|
for _, gofile := range files {
|
||||||
|
if filepath.Ext(gofile.Name()) != ".go" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
afile := strings.Replace(gofile.Name(), ".go", "."+letter, -1)
|
afile := strings.Replace(gofile.Name(), ".go", "."+letter, -1)
|
||||||
out, err := runcmd("go", "tool", gc, "-e", "-D.", "-I.", "-o", afile, filepath.Join(longdir, gofile.Name()))
|
out, err := runcmd("go", "tool", gc, "-e", "-D.", "-I.", "-o", afile, filepath.Join(longdir, gofile.Name()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user