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

Side by Side Diff: factory/chromium_factory.py

Issue 3161017: Final changes to get PyAuto official happy with Mac and Win. Use... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/buildbot/scripts/master/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « factory/chromium_commands.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Utility class to build the chromium master BuildFactory's. 6 """Utility class to build the chromium master BuildFactory's.
7 7
8 Based on gclient_factory.py and adds chromium-specific steps.""" 8 Based on gclient_factory.py and adds chromium-specific steps."""
9 9
10 import os 10 import os
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 prefix = 'wine_valgrind_' 253 prefix = 'wine_valgrind_'
254 if test.startswith(prefix): 254 if test.startswith(prefix):
255 test_name = test[len(prefix):] 255 test_name = test[len(prefix):]
256 f.AddWineValgrindTest(test_name) 256 f.AddWineValgrindTest(test_name)
257 257
258 258
259 # PyAuto functional tests. 259 # PyAuto functional tests.
260 if R('pyauto_functional_tests'): 260 if R('pyauto_functional_tests'):
261 f.AddPyAutoFunctionalTest('pyauto_functional_tests') 261 f.AddPyAutoFunctionalTest('pyauto_functional_tests')
262 elif R('pyauto_official_tests'): 262 elif R('pyauto_official_tests'):
263 # Mapping from self._target_platform to a chrome-*.zip
264 platmap = {'win32': 'win',
265 'darwin': 'mac',
266 'linux2': 'linux' }
267 zip_plat = platmap[self._target_platform]
268 workdir = os.path.join(f._working_dir, 'chrome-' + zip_plat)
269 f.AddPyAutoFunctionalTest('pyauto_functional_tests', 263 f.AddPyAutoFunctionalTest('pyauto_functional_tests',
270 functional_base='..', 264 workdir=f._working_dir)
271 workdir=workdir)
272 265
273 # When adding a test that uses a new executable, update kill_processes.py. 266 # When adding a test that uses a new executable, update kill_processes.py.
274 267
275 # Coverage tests. Add coverage processing absoluely last, after 268 # Coverage tests. Add coverage processing absoluely last, after
276 # all tests have run. Tests which run after coverage processing 269 # all tests have run. Tests which run after coverage processing
277 # don't get counted. 270 # don't get counted.
278 if R('run_coverage_bundles'): 271 if R('run_coverage_bundles'):
279 f.AddRunCoverageBundles(fp) 272 f.AddRunCoverageBundles(fp)
280 if R('process_coverage'): 273 if R('process_coverage'):
281 f.AddProcessCoverage(fp) 274 f.AddProcessCoverage(fp)
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 factory = self.BuildFactory(identifier, target, clobber, tests, mode, 491 factory = self.BuildFactory(identifier, target, clobber, tests, mode,
499 slave_type, options, compile_timeout, build_url, 492 slave_type, options, compile_timeout, build_url,
500 project, factory_properties) 493 project, factory_properties)
501 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory, identifier, 494 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory, identifier,
502 target, 495 target,
503 self._build_dir, 496 self._build_dir,
504 self._target_platform) 497 self._target_platform)
505 chromium_cmd_obj.AddDownloadAndExtractOfficialBuild(identifier) 498 chromium_cmd_obj.AddDownloadAndExtractOfficialBuild(identifier)
506 self._AddTests(chromium_cmd_obj, tests, mode, factory_properties) 499 self._AddTests(chromium_cmd_obj, tests, mode, factory_properties)
507 return factory 500 return factory
OLDNEW
« no previous file with comments | « factory/chromium_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698