Esempio n. 1
0
 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)
Esempio n. 2
0
    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)
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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)