Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: scripts/master/factory/chromium_commands.py

Issue 1237693003: Prepare to run setup_unittests on win bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Set of utilities to add commands to a buildbot factory. 5 """Set of utilities to add commands to a buildbot factory.
6 6
7 This is based on commands.py and adds chromium-specific commands.""" 7 This is based on commands.py and adds chromium-specific commands."""
8 8
9 import logging 9 import logging
10 import os 10 import os
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 cmd = self.GetPythonTestCommand(self._telemetry_perf_unit_tests, 454 cmd = self.GetPythonTestCommand(self._telemetry_perf_unit_tests,
455 arg_list=args, 455 arg_list=args,
456 wrapper_args=['--annotate=gtest', 456 wrapper_args=['--annotate=gtest',
457 '--test-type=%s' % step_name]) 457 '--test-type=%s' % step_name])
458 458
459 self.AddBuildrunnerTestStep(chromium_step.AnnotatedCommand, step_name, cmd, 459 self.AddBuildrunnerTestStep(chromium_step.AnnotatedCommand, step_name, cmd,
460 do_step_if=self.TestStepFilter) 460 do_step_if=self.TestStepFilter)
461 461
462 def AddInstallerTests(self, factory_properties): 462 def AddInstallerTests(self, factory_properties):
463 if self._target_platform == 'win32': 463 if self._target_platform == 'win32':
464 self.AddGTestTestStep('installer_util_unittests', 464 self.AddGTestTestStep('installer_util_unittests', factory_properties)
465 factory_properties) 465 self.AddGTestTestStep('setup_unittests', factory_properties)
466 466
467 def AddBuildrunnerInstallerTests(self, factory_properties): 467 def AddBuildrunnerInstallerTests(self, factory_properties):
468 if self._target_platform == 'win32': 468 if self._target_platform == 'win32':
469 self.AddGTestTestStep('installer_util_unittests', 469 self.AddGTestTestStep('installer_util_unittests', factory_properties)
470 factory_properties) 470 self.AddGTestTestStep('setup_unittests', factory_properties)
471 471
472 def AddChromeUnitTests(self, factory_properties): 472 def AddChromeUnitTests(self, factory_properties):
473 self.AddGTestTestStep('ipc_tests', factory_properties) 473 self.AddGTestTestStep('ipc_tests', factory_properties)
474 self.AddGTestTestStep('sync_unit_tests', factory_properties) 474 self.AddGTestTestStep('sync_unit_tests', factory_properties)
475 self.AddGTestTestStep('unit_tests', factory_properties) 475 self.AddGTestTestStep('unit_tests', factory_properties)
476 self.AddGTestTestStep('skia_unittests', factory_properties) 476 self.AddGTestTestStep('skia_unittests', factory_properties)
477 self.AddGTestTestStep('sql_unittests', factory_properties) 477 self.AddGTestTestStep('sql_unittests', factory_properties)
478 self.AddGTestTestStep('ui_base_unittests', factory_properties) 478 self.AddGTestTestStep('ui_base_unittests', factory_properties)
479 self.AddGTestTestStep('content_unittests', factory_properties) 479 self.AddGTestTestStep('content_unittests', factory_properties)
480 if self._target_platform == 'win32': 480 if self._target_platform == 'win32':
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1084 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1085 1085
1086 1086
1087 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1087 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1088 if not factory_properties or 'gs_bucket' not in factory_properties: 1088 if not factory_properties or 'gs_bucket' not in factory_properties:
1089 return (_GetArchiveUrl('snapshots', builder_name), None) 1089 return (_GetArchiveUrl('snapshots', builder_name), None)
1090 gs_bucket = factory_properties['gs_bucket'] 1090 gs_bucket = factory_properties['gs_bucket']
1091 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1091 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1092 gs_bucket) 1092 gs_bucket)
1093 return ('%s/index.html?prefix=%s' % (gs_bucket, builder_name), '') 1093 return ('%s/index.html?prefix=%s' % (gs_bucket, builder_name), '')
OLDNEW
« no previous file with comments | « no previous file | scripts/master/factory/chromium_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698