From 2d4016a15606891a893d49751d6ece0924d919bf Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 26 Jan 2015 23:06:50 -0500 Subject: [PATCH] Using canStartBuild to limit the number of builds on builders --- master.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master.cfg b/master.cfg index 4378767..08bfdea 100644 --- a/master.cfg +++ b/master.cfg @@ -600,6 +600,9 @@ class RunTestGDBIndexBuildBSD (RunTestGDBIndexBuild, RunTestGDBBSD_Common): # For now, we only support testing the "master" branch. all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch) +def DefaultGDBCanStartBuild (builder, buildslave, buildrequest): + return not builder.building + ############################### #### Configuration loading #### ############################### @@ -640,6 +643,7 @@ def load_config (c): btype = b.pop ('type') factory = globals ()[ "RunTestGDB%s" % btype ] b['factory'] = factory (arch_triplet) + b['canStartBuild'] = DefaultGDBCanStartBuild c['builders'].append (b) load_config (c)