]> Cypherpunks repositories - gostls13.git/commitdiff
builder: use short test for subrepos
authorShenghou Ma <minux.ma@gmail.com>
Mon, 5 Mar 2012 15:16:11 +0000 (23:16 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 5 Mar 2012 15:16:11 +0000 (23:16 +0800)
R=rsc, golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5732053

misc/dashboard/builder/main.go

index 4fe65b7a5d287e0fe96e5b0bd90544bb37a53855..534ff514ad3f2ed9dd74e6ea99a6ebd79e08fa4a 100644 (file)
@@ -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)
        }