def __init__(self, config, simulate=False, logger=log): self.configuration = config if self.getConfigSetting("base/type", "") == "standalone-generator": self.configuration = self.getConfigFromGenerator() self.log = logger self.simulate = simulate self.startDate = util.getTimestamp() self.buildStatus = {} if "base" in self.configuration: self.configuration["base"]["testHostName"] = util.getHostName() self.log.info("New test run started on %s" %self.startDate)
def __init__(self, config, simulate=False, logger=log): self.configuration = config if self.getConfigSetting("base/type", "") == "standalone-generator": self.configuration = self.getConfigFromGenerator() self.log = logger self.simulate = simulate self.startDate = util.getTimestamp() self.buildStatus = {} if "base" in self.configuration: self.configuration["base"]["testHostName"] = util.getHostName() self.log.info("New test run started on %s" % self.startDate)
def __getGeneratorResultDict(cls, job, path): result = { "job" : job, "path" : path, "command" : False, "startDate" : util.getTimestamp(), "revision" : util.getSvnVersion(path), "host" : util.getHostName(), "stopDate" : False, "returncode" : False, "stdout" : False, "stderr" : False } return result
def __getGeneratorResultDict(cls, job, path): result = { "job": job, "path": path, "command": False, "startDate": util.getTimestamp(), "revision": util.getSvnVersion(path), "host": util.getHostName(), "stopDate": False, "returncode": False, "stdout": False, "stderr": False } return result
def __init__(self, config, simulate=False, logger=None): self.configuration = config if self.getConfigSetting("type", "") == "standalone-generator": self.configuration = self.getConfigFromGenerator() if not logger: self.log = self.getLogger() else: self.log = logger self.simulate = simulate self.startDate = util.getTimestamp() self.configuration["base"]["testHostName"] = util.getHostName() self.log.info("New test run started on %s" %self.startDate)