def setUp(self):
        """Sets up test case."""
        self.options = cros_test_lib.EasyAttr(base_dir=self.tempdir,
                                              board=self.BOARD,
                                              reuse_repo=True,
                                              good=self.GOOD_COMMIT_SHA1,
                                              bad=self.BAD_COMMIT_SHA1,
                                              remote=self.DUT,
                                              eval_repeat=self.REPEAT,
                                              auto_threshold=False,
                                              reuse_eval=False,
                                              eval_raise_on_error=False,
                                              skip_failed_commit=False)

        self.evaluator = evaluator_module.Evaluator(self.options)
        self.builder = builder_module.Builder(self.options)
        self.bisector = git_bisector.GitBisector(self.options, self.builder,
                                                 self.evaluator)
        self.repo_dir = os.path.join(self.tempdir,
                                     builder_module.Builder.DEFAULT_REPO_DIR)
Beispiel #2
0
 def SetUpBisector(self):
     """Instantiates self.bisector using self.options."""
     self.evaluator = DummyEvaluator(self.options)
     self.builder = builder_module.Builder(self.options)
     self.bisector = chrome_on_cros_bisector.ChromeOnCrosBisector(
         self.options, self.builder, self.evaluator)