mirror of
https://github.com/golang/go
synced 2024-11-21 21:04:41 -07:00
misc/dashboard/builder: remove build files after benchmarking
R=r CC=golang-dev https://golang.org/cl/2270041
This commit is contained in:
parent
5ec55c5134
commit
fdb9e68c4e
@ -129,6 +129,8 @@ func runQueuedBenchmark() bool {
|
|||||||
|
|
||||||
func runBenchmark(r BenchRequest) {
|
func runBenchmark(r BenchRequest) {
|
||||||
// run benchmarks and send to dashboard
|
// 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")
|
pkg := path.Join(r.path, "go", "src", "pkg")
|
||||||
bin := path.Join(r.path, "go", "bin")
|
bin := path.Join(r.path, "go", "bin")
|
||||||
env := []string{
|
env := []string{
|
||||||
@ -159,7 +161,7 @@ func NewBuilder(builder string) (*Builder, os.Error) {
|
|||||||
|
|
||||||
// read keys from keyfile
|
// read keys from keyfile
|
||||||
fn := path.Join(os.Getenv("HOME"), ".gobuildkey")
|
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
|
fn = s
|
||||||
}
|
}
|
||||||
c, err := ioutil.ReadFile(fn)
|
c, err := ioutil.ReadFile(fn)
|
||||||
|
Loading…
Reference in New Issue
Block a user