Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
fdb9e68c
Commit
fdb9e68c
authored
Sep 30, 2010
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dashboard/builder: remove build files after benchmarking
R=r CC=golang-dev
https://golang.org/cl/2270041
parent
5ec55c51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
main.go
misc/dashboard/builder/main.go
+4
-2
No files found.
misc/dashboard/builder/main.go
View file @
fdb9e68c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment