Exemple #1
0
 def __init__(self, *args, **kwargs):
     # TODO(maruel): Mainly to keep pylint happy, remove once buildbot fixed
     # their style.
     self.branch = None
     self.srcdir = None
     self.revision = None
     self.env = None
     self.sourcedatafile = None
     self.patch = None
     self.command = None
     self.vcexe = None
     self.svnurl = None
     self.sudo_for_remove = None
     self.gclient_spec = None
     self.gclient_deps = None
     self.rm_timeout = None
     self.gclient_nohooks = False
     self.was_patched = False
     self.no_gclient_branch = False
     self.no_gclient_revision = False
     self.gclient_transitive = False
     self.delete_unversioned_trees_when_updating = True
     self.gclient_jobs = None
     self.project = None
     # TODO(maruel): Remove once buildbot 0.8.4p1 conversion is complete.
     self.sourcedata = None
     self.do_nothing = None
     chromium_utils.GetParentClass(GClient).__init__(self, *args, **kwargs)
 def ProcessLine(self, line):
     """Also looks for the Pages: line to find the page count."""
     # super() should be used instead of GetParentClass().
     # pylint: disable=W0212
     line_match = self.PAGES_REGEXP.search(line)
     if line_match:
         self._page_list = line_match.groupdict()['LIST'].strip().split(',')
         if len(self._page_list) < 1:
             self._page_list = ['(unknown)']
     else:
         chromium_utils.GetParentClass(self).ProcessLine(self, line)
Exemple #3
0
 def __init__(self, *args, **kwargs):
     log.msg('ApplyIssue.__init__')
     self.root = None
     self.issue = None
     self.patchset = None
     self.email = None
     self.password = None
     self.workdir = None
     self.timeout = None
     self.server = None
     chromium_utils.GetParentClass(ApplyIssue).__init__(
         self, *args, **kwargs)
Exemple #4
0
 def ProcessLine(self, line):
     """Looks for Chrome Endure results: line to find the individual results."""
     # super() should be used instead of GetParentClass().
     # pylint: disable=W0212
     endure_match = self.ENDURE_RESULTS_REGEX.search(line)
     # TODO(dmikurube): Should handle EVENT lines.
     # event_match = self.EVENT_RESULTS_REGEX.search(line)
     if endure_match:
         self._ProcessEndureResultLine(endure_match)
     # elif event_match:
     #   self._ProcessEventLine(event_match)
     else:
         chromium_utils.GetParentClass(self).ProcessLine(self, line)
Exemple #5
0
 def _ProcessLine(self, line):
     """Also looks for the Gestures: line to find the individual results."""
     # super() should be used instead of GetParentClass().
     # pylint: disable=W0212
     line_match = self.GESTURES_REGEXP.match(line)
     if line_match:
         match_dict = line_match.groupdict()
         graph_name = match_dict['GRAPH'].strip()
         trace_name = match_dict['TRACE'].strip()
         gestures = match_dict['GESTURES'].strip().split(',')
         means = [float(x) for x in match_dict['MEANS'].strip().split(',')]
         sigmas = [
             float(x) for x in match_dict['SIGMAS'].strip().split(',')
         ]
         if len(gestures) > 0:
             self.__SaveGestureData(graph_name, trace_name, gestures, means,
                                    sigmas)
     else:
         chromium_utils.GetParentClass(self)._ProcessLine(self, line)