aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-09-30 11:59:36 +1000
committerAndrew Gerrand <adg@golang.org>2010-09-30 11:59:36 +1000
commitfdb9e68c4e0f79f46daf36cb2fb57841ef4b91f7 (patch)
treee7df747be12f2386203a2466b793d012c0dcaa4d
parent5ec55c5134402bfc8cb797b87f7937031f670da4 (diff)
downloadgo-fdb9e68c4e0f79f46daf36cb2fb57841ef4b91f7.tar.gz
go-fdb9e68c4e0f79f46daf36cb2fb57841ef4b91f7.zip
misc/dashboard/builder: remove build files after benchmarking
R=r CC=golang-dev https://golang.org/cl/2270041
-rw-r--r--misc/dashboard/builder/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go
index ce0caf80f5..374374b962 100644
--- a/misc/dashboard/builder/main.go
+++ b/misc/dashboard/builder/main.go
@@ -129,6 +129,8 @@ func runQueuedBenchmark() bool {
func runBenchmark(r BenchRequest) {
// run benchmarks and send to dashboard
+ log.Stderrf("%s benchmarking %d", r.builder.name, r.commit.num)
+ defer os.RemoveAll(r.path)
pkg := path.Join(r.path, "go", "src", "pkg")
bin := path.Join(r.path, "go", "bin")
env := []string{
@@ -159,7 +161,7 @@ func NewBuilder(builder string) (*Builder, os.Error) {
// read keys from keyfile
fn := path.Join(os.Getenv("HOME"), ".gobuildkey")
- if s := fn+"-"+b.name; isFile(s) { // builder-specific file
+ if s := fn + "-" + b.name; isFile(s) { // builder-specific file
fn = s
}
c, err := ioutil.ReadFile(fn)
@@ -251,7 +253,7 @@ func (b *Builder) buildCommit(c Commit) (err os.Error) {
}
// update to specified revision
- err = run(nil, path.Join(workpath, "go"),
+ err = run(nil, path.Join(workpath, "go"),
"hg", "update", "-r", strconv.Itoa(c.num))
if err != nil {
return