예제 #1
0
  def setUp(self):
    self.old_chdir = os.chdir
    os.chdir = self.mockChdir
    self.old_depot_names = bisect_utils.DEPOT_NAMES
    bisect_utils.DEPOT_NAMES = ['mock_depot']
    self.old_depot_deps_name = bisect_utils.DEPOT_DEPS_NAME
    bisect_utils.DEPOT_DEPS_NAME = {'mock_depot': {'src': 'src/foo'}}

    self.registry = bisect_perf_regression.DepotDirectoryRegistry('/mock/src')
    self.cur_dir = None
예제 #2
0
def _SampleBisecResult(opts):
    revisions = [
        'ae7ef14ba2d9b5ef0d2c1c092ec98a417e44740d'
        'ab55ead638496b061c9de61685b982f7cea38ca7',
        '89aa0c99e4b977b9a4f992ac14da0d6624f7316e'
    ]
    state = bisect_state.BisectState(depot='chromium', revisions=revisions)
    depot_registry = bisect_perf_regression.DepotDirectoryRegistry('/mock/src')
    results = bisect_results.BisectResults(bisect_state=state,
                                           depot_registry=depot_registry,
                                           opts=opts,
                                           runtime_warnings=[])
    results.confidence = 99.9
    results.culprit_revisions = [('ab55ead638496b061c9de61685b982f7cea38ca7', {
        'date': 'Thu, 26 Jun 2014 14:29:49 +0000',
        'body': 'Fix',
        'author': '*****@*****.**',
        'subject': 'Fix',
        'email': '*****@*****.**',
    }, 'chromium')]
    return results