def testDevInstallerPrebuilts(self, packages=('package1', 'package2')):
   """Test UploadDevInstallerPrebuilts."""
   args = ['gs://dontcare', 'some_path_to_key', 'https://my_test/location']
   with mock.patch.object(prebuilts, '_AddPackagesForPrebuilt',
                          return_value=packages):
     prebuilts.UploadDevInstallerPrebuilts(*args, buildroot=self._buildroot,
                                           board=self._board)
   self.assertCommandContains([constants.CANARY_TYPE] + args[2:] + args[0:2])
Пример #2
0
 def PerformStage(self):
   generated_args = generated_args = self.GenerateCommonArgs()
   prebuilts.UploadDevInstallerPrebuilts(
       binhost_bucket=self._run.config.binhost_bucket,
       binhost_key=self._run.config.binhost_key,
       binhost_base_url=self._run.config.binhost_base_url,
       buildroot=self._build_root,
       board=self._current_board,
       extra_args=generated_args)