コード例 #1
0
  def PerformStage(self):
    extra_env = {}
    if self._run.config.useflags:
      extra_env['USE'] = ' '.join(self._run.config.useflags)
    r = ' Reached UnitTestStage timeout.'
    with timeout_util.Timeout(self.UNIT_TEST_TIMEOUT, reason_message=r):
      commands.RunUnitTests(self._build_root,
                            self._current_board,
                            blacklist=self._run.config.unittest_blacklist,
                            extra_env=extra_env)

    if os.path.exists(os.path.join(self.GetImageDirSymlink(),
                                   'au-generator.zip')):
      commands.TestAuZip(self._build_root,
                         self.GetImageDirSymlink())
コード例 #2
0
 def PerformStage(self):
   extra_env = {}
   if self._run.config.useflags:
     extra_env['USE'] = ' '.join(self._run.config.useflags)
   r = ' Reached UnitTestStage timeout.'
   with timeout_util.Timeout(self.UNIT_TEST_TIMEOUT, reason_message=r):
     commands.RunUnitTests(
         self._build_root,
         self._current_board,
         blacklist=self._run.config.unittest_blacklist,
         extra_env=extra_env,
         build_stage=self._run.config.build_packages)
   # Package UnitTest binaries.
   tarball = commands.BuildUnitTestTarball(
       self._build_root, self._current_board, self.archive_path)
   self.UploadArtifact(tarball, archive=False)
コード例 #3
0
 def PerformStage(self):
   extra_env = {}
   if self._run.config.useflags:
     extra_env['USE'] = ' '.join(self._run.config.useflags)
   r = ' Reached UnitTestStage timeout.'
   with timeout_util.Timeout(self.UNIT_TEST_TIMEOUT, reason_message=r):
     try:
       commands.RunUnitTests(
           self._build_root,
           self._current_board,
           blacklist=self._run.config.unittest_blacklist,
           build_stage=self._run.config.build_packages,
           chroot_args=ChrootArgs(self._run.options),
           extra_env=extra_env)
     except failures_lib.BuildScriptFailure:
       logging.PrintBuildbotStepWarnings()
       logging.warning('Unittests failed. Ignored crbug.com/936123.')
コード例 #4
0
ファイル: test_stages.py プロジェクト: msisov/chromium68
  def PerformStage(self):
    extra_env = {}
    if self._run.config.useflags:
      extra_env['USE'] = ' '.join(self._run.config.useflags)
    r = ' Reached UnitTestStage timeout.'
    with timeout_util.Timeout(self.UNIT_TEST_TIMEOUT, reason_message=r):
      commands.RunUnitTests(self._build_root,
                            self._current_board,
                            blacklist=self._run.config.unittest_blacklist,
                            extra_env=extra_env)
    # Package UnitTest binaries.
    tarball = commands.BuildUnitTestTarball(
        self._build_root, self._current_board, self.archive_path)
    self.UploadArtifact(tarball, archive=False)

    if os.path.exists(os.path.join(self.GetImageDirSymlink(),
                                   'au-generator.zip')):
      commands.TestAuZip(self._build_root,
                         self.GetImageDirSymlink())