mirror of https://github.com/perkeep/perkeep.git
buildbot: option to skip test suite, mainly for debugging.
Change-Id: Ief506ed1403a48eecd3ef37e17818d3612ae40b4
This commit is contained in:
parent
acf2eeb2d4
commit
e3e25c885f
|
@ -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.")
|
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.")
|
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.")
|
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")
|
verbose = flag.Bool("verbose", false, "print what's going on")
|
||||||
skipTLSCheck = flag.Bool("skiptlscheck", false, "accept any certificate presented by server when uploading results.")
|
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.")
|
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
|
goDir = goTipDir
|
||||||
}
|
}
|
||||||
switchGo(goDir)
|
switchGo(goDir)
|
||||||
|
if doSkip(isTip) {
|
||||||
|
endOfSuite(nil)
|
||||||
|
continue
|
||||||
|
}
|
||||||
if *fakeTests {
|
if *fakeTests {
|
||||||
if err := fakeRun(); err != nil {
|
if err := fakeRun(); err != nil {
|
||||||
endOfSuite(err)
|
endOfSuite(err)
|
||||||
|
@ -374,6 +379,10 @@ func main() {
|
||||||
sendReport()
|
sendReport()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func doSkip(isTip bool) bool {
|
||||||
|
return *skip == "all" || (isTip && *skip == "gotip") || (!isTip && *skip == "go1")
|
||||||
|
}
|
||||||
|
|
||||||
func sanitizeRevs() {
|
func sanitizeRevs() {
|
||||||
if currentBiSuite == nil {
|
if currentBiSuite == nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue