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
d5f78d77
Commit
d5f78d77
authored
Mar 05, 2012
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder: use short test for subrepos
R=rsc, golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5732053
parent
b5dc8724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.go
misc/dashboard/builder/main.go
+3
-3
No files found.
misc/dashboard/builder/main.go
View file @
d5f78d77
...
...
@@ -23,7 +23,7 @@ import (
const
(
codeProject
=
"go"
codePyScript
=
"misc/dashboard/googlecode_upload.py"
hgUrl
=
"https://
go.googlecode.com/hg
/"
hgUrl
=
"https://
code.google.com/p/go
/"
mkdirPerm
=
0750
waitInterval
=
30
*
time
.
Second
// time to wait before checking for new revs
pkgBuildInterval
=
24
*
time
.
Hour
// rebuild packages every 24 hours
...
...
@@ -429,7 +429,7 @@ func (b *Builder) buildSubrepos(goRoot, goHash string) {
}
// buildSubrepo fetches the given package, updates it to the specified hash,
// and runs 'go test pkg/...'. It returns the build log and any error.
// and runs 'go test
-short
pkg/...'. It returns the build log and any error.
func
(
b
*
Builder
)
buildSubrepo
(
goRoot
,
pkg
,
hash
string
)
(
string
,
error
)
{
goBin
:=
filepath
.
Join
(
goRoot
,
"bin"
)
goTool
:=
filepath
.
Join
(
goBin
,
"go"
)
...
...
@@ -466,7 +466,7 @@ func (b *Builder) buildSubrepo(goRoot, pkg, hash string) (string, error) {
}
// test the package
log
,
status
,
err
=
runLog
(
env
,
""
,
goRoot
,
goTool
,
"test"
,
pkg
+
"/..."
)
log
,
status
,
err
=
runLog
(
env
,
""
,
goRoot
,
goTool
,
"test"
,
"-short"
,
pkg
+
"/..."
)
if
err
==
nil
&&
status
!=
0
{
err
=
fmt
.
Errorf
(
"go exited with status %d"
,
status
)
}
...
...
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