예제 #1
0
  def RunPrePatchBuild(self):
    """Run through a pre-patch build to prepare for incremental build.

    This function runs though the InitSDKStage, SetupBoardStage, and
    BuildPackagesStage. It is intended to be called before applying
    any patches under test, to prepare the chroot and sysroot in a state
    corresponding to ToT prior to an incremental build.

    Returns:
      True if all stages were successful, False if any of them failed.
    """
    suffix = ' (pre-Patch)'
    try:
      build_stages.InitSDKStage(
          self._run, self.buildstore, chroot_replace=True, suffix=suffix).Run()
      for builder_run in self._run.GetUngroupedBuilderRuns():
        for board in builder_run.config.boards:
          build_stages.SetupBoardStage(
              builder_run, self.buildstore, board=board, suffix=suffix).Run()
          build_stages.BuildPackagesStage(
              builder_run, self.buildstore, board=board, suffix=suffix).Run()
    except failures_lib.StepFailure:
      return False

    return True
 def ConstructStage(self):
   self._run.attrs.release_tag = self._release_tag
   return build_stages.BuildPackagesStage(
       self._run,
       self.buildstore,
       self._current_board,
       record_packages_under_test=False,
       update_metadata=self._update_metadata)
예제 #3
0
 def ConstructStage(self):
     self._run.attrs.release_tag = self._release_tag
     return build_stages.BuildPackagesStage(
         self._run,
         self._current_board,
         update_metadata=self._update_metadata)