Beispiel #1
0
  def __init__(self, builder_run, buildstore, patch_pool, **kwargs):
    super(BootstrapStage, self).__init__(builder_run, buildstore,
                                         trybot_patch_pool.TrybotPatchPool(),
                                         **kwargs)

    self.patch_pool = patch_pool
    self.returncode = None
    self.tempdir = None
Beispiel #2
0
    def __init__(self, builder_run):
        """Initializes instance variables. Must be called by all subclasses."""
        self._run = builder_run

        # TODO: all the fields below should not be part of the generic builder.
        # We need to restructure our SimpleBuilder and see about creating a new
        # base in there for holding them.
        if self._run.config.chromeos_official:
            os.environ['CHROMEOS_OFFICIAL'] = '1'

        self.archive_stages = {}
        self.patch_pool = trybot_patch_pool.TrybotPatchPool()
        self._build_image_lock = multiprocessing.Lock()
 def ConstructStage(self):
     patch_pool = trybot_patch_pool.TrybotPatchPool()
     return sync_stages.BootstrapStage(self._run, self.buildstore,
                                       patch_pool)