def __init__(self, config): self.config = config self.opts = runner.loadOptions() self.connect = self.getopt("connect", "try_connect") assert self.connect, "you must specify a connect style: ssh or pb" self.builderNames = self.getopt("builders", "try_builders") assert self.builderNames, "no builders! use --builder or " "try_builders=[names..] in .buildbot/options"
def __init__(self, config): self.config = config self.opts = runner.loadOptions() self.connect = self.getopt('connect', 'try_connect') assert self.connect, "you must specify a connect style: ssh or pb" self.builderNames = self.getopt('builders', 'try_builders') assert self.builderNames, "no builders! use --builder or " \ "try_builders=[names..] in .buildbot/options"
def check(self, d, key): basedir = os.sep.join(d) options = runner.loadOptions(self.optionsFile, here=basedir, home=self.home) if key is None: self.failIf(options.has_key('key')) else: self.failUnlessEqual(options['key'], key)
def __init__(self, config): self.config = config self.opts = runner.loadOptions() self.connect = self.getopt('connect', 'try_connect') assert self.connect, "you must specify a connect style: ssh or pb" self.builderNames = self.getopt('builders', 'try_builders')