buildbot: option to skip test suite, mainly for debugging.

Change-Id: Ief506ed1403a48eecd3ef37e17818d3612ae40b4
This commit is contained in:
mpl 2014-08-05 16:46:27 +02:00
parent acf2eeb2d4
commit e3e25c885f
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,7 @@ var (
masterHosts = flag.String("masterhosts", "localhost:8080", "listening hostname and port of the master bots, i.e where to send the test suite reports. Comma separated list.")
ourOS = flag.String("os", "", "The OS we report the master(s). Defaults to runtime.GOOS.")
skipGo1Build = flag.Bool("skipgo1build", false, "skip initial go1 build, for debugging and quickly going to the next steps.")
skip = flag.String("skip", "", "Test suite to skip. Valid values are \"go1\", \"gotip\", or \"all\".")
verbose = flag.Bool("verbose", false, "print what's going on")
skipTLSCheck = flag.Bool("skiptlscheck", false, "accept any certificate presented by server when uploading results.")
taskLifespan = flag.Int("timeout", 600, "Lifespan (in seconds) for each task run by this builder, after which the task automatically terminates. 0 or negative means infinite.")
@ -327,6 +328,10 @@ func main() {
goDir = goTipDir
}
switchGo(goDir)
if doSkip(isTip) {
endOfSuite(nil)
continue
}
if *fakeTests {
if err := fakeRun(); err != nil {
endOfSuite(err)
@ -374,6 +379,10 @@ func main() {
sendReport()
}
func doSkip(isTip bool) bool {
return *skip == "all" || (isTip && *skip == "gotip") || (!isTip && *skip == "go1")
}
func sanitizeRevs() {
if currentBiSuite == nil {
return