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())
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)
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.')
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())