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

Unified Diff: frog/scripts/buildbot_annotated_steps.py

Issue 10239010: Make test.dart respect the requested order of test suites, and also split up IE (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/test.dart » ('j') | tools/test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/buildbot_annotated_steps.py
===================================================================
--- frog/scripts/buildbot_annotated_steps.py (revision 7030)
+++ frog/scripts/buildbot_annotated_steps.py (working copy)
@@ -52,6 +52,7 @@
option = None
shard_index = None
total_shards = None
+ number = None
if not builder_name:
# We are not running on a buildbot.
if args.name:
@@ -100,7 +101,8 @@
print ('Error: You cannot emulate a buildbot with a platform different '
'from your own.')
sys.exit(1)
- return (compiler, runtime, mode, system, option, shard_index, total_shards)
+ return (compiler, runtime, mode, system, option, shard_index, total_shards,
+ number)
def NeedsXterm(compiler, runtime):
@@ -169,7 +171,7 @@
return subprocess.call(args, env=NO_COLOR_ENV)
-def TestFrog(compiler, runtime, mode, system, option, flags):
+def TestFrog(compiler, runtime, mode, system, option, flags, bot_number=None):
""" test frog.
Args:
- compiler: either 'dart2js' or 'frog'
@@ -178,6 +180,8 @@
- system: either 'linux', 'mac', or 'win7'
- option: 'checked'
- flags: extra flags to pass to test.dart
+ - bot_number: (optional) Number of the buildbot. Used for dividing test
+ sets between bots.
"""
# Make sure we are in the frog directory
@@ -202,8 +206,8 @@
TestStep("sdk", mode, system, 'none', 'vm', ['dartdoc'], flags)
else:
- tests = ['client', 'language', 'corelib', 'isolate', 'frog',
- 'frog_native', 'peg', 'css']
+ tests = ['client', 'isolate', 'frog', 'css', 'corelib', 'language'
+ 'frog_native', 'peg']
# TODO(efortuna): Move Mac back to DumpRenderTree when we have a more stable
# solution for DRT. Right now DRT is flakier than regular Chrome for the
@@ -220,6 +224,11 @@
# running at a time. For details, see
# http://code.google.com/p/selenium/wiki/InternetExplorerDriver.
additional_flags += ['-j1']
+ # The IE bots are slow lately. Split up the tests they do.
+ if bot_number == '2':
+ tests = ['corelib', 'language']
+ else:
+ tests = ['client', 'isolate', 'frog', 'css', 'frog_native', 'peg']
TestStep(runtime, mode, system, compiler, runtime, tests,
flags + additional_flags)
@@ -265,7 +274,7 @@
print 'Script pathname not known, giving up.'
return 1
- compiler, runtime, mode, system, option, shard_index, total_shards = (
+ compiler, runtime, mode, system, option, shard_index, total_shards, number = (
GetBuildInfo())
shard_description = ""
if shard_index:
@@ -283,19 +292,21 @@
if shard_index:
test_flags = ['--shards=%s' % total_shards, '--shard=%s' % shard_index]
if compiler == 'dart2js':
- status = TestFrog(compiler, runtime, mode, system, option, test_flags)
+ status = TestFrog(compiler, runtime, mode, system, option, test_flags,
+ number)
if status != 0:
print '@@@STEP_FAILURE@@@'
return status # Return unconditionally for dart2js.
if runtime == 'd8' or (system == 'linux' and runtime == 'chrome'):
- status = TestFrog(compiler, runtime, mode, system, option, test_flags)
+ status = TestFrog(compiler, runtime, mode, system, option, test_flags,
+ number)
if status != 0:
print '@@@STEP_FAILURE@@@'
return status
status = TestFrog(compiler, runtime, mode, system, option,
- test_flags + ['--checked'])
+ test_flags + ['--checked'], number)
if status != 0:
print '@@@STEP_FAILURE@@@'
« no previous file with comments | « no previous file | tools/test.dart » ('j') | tools/test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698