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

Side by Side Diff: utils/compiler/buildbot.py

Issue 10942021: Fix sharding index extraction for in browser testing. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « no previous file | 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 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Dart2js buildbot steps 7 """Dart2js buildbot steps
8 8
9 Runs tests for the dart2js compiler. 9 Runs tests for the dart2js compiler.
10 """ 10 """
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 if builder_name: 73 if builder_name:
74 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) 74 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name)
75 web_pattern = re.match(WEB_BUILDER, builder_name) 75 web_pattern = re.match(WEB_BUILDER, builder_name)
76 76
77 if web_pattern: 77 if web_pattern:
78 compiler = 'dart2js' 78 compiler = 'dart2js'
79 runtime = web_pattern.group(2) 79 runtime = web_pattern.group(2)
80 system = web_pattern.group(3) 80 system = web_pattern.group(3)
81 mode = 'release' 81 mode = 'release'
82 shard_index = web_pattern.group(3) 82 shard_index = web_pattern.group(4)
83 total_shards = web_pattern.group(4) 83 total_shards = web_pattern.group(5)
84 elif dart2js_pattern: 84 elif dart2js_pattern:
85 compiler = 'dart2js' 85 compiler = 'dart2js'
86 runtime = 'd8' 86 runtime = 'd8'
87 system = dart2js_pattern.group(1) 87 system = dart2js_pattern.group(1)
88 mode = dart2js_pattern.group(2) 88 mode = dart2js_pattern.group(2)
89 # The valid naming parts for checked and host-checked are: 89 # The valid naming parts for checked and host-checked are:
90 # Empty: checked=False, host_checked=False 90 # Empty: checked=False, host_checked=False
91 # -checked: checked=True, host_checked=False 91 # -checked: checked=True, host_checked=False
92 # -host-checked: checked=False, host_checked=True 92 # -host-checked: checked=False, host_checked=True
93 # -checked-host-checked: checked=True, host_checked=True 93 # -checked-host-checked: checked=True, host_checked=True
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 if (status == 0 and system == 'linux' and runtime == 'chrome'): 373 if (status == 0 and system == 'linux' and runtime == 'chrome'):
374 status = TestCompiler(runtime, mode, system, test_flags + ['--checked'], 374 status = TestCompiler(runtime, mode, system, test_flags + ['--checked'],
375 is_buildbot) 375 is_buildbot)
376 376
377 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 377 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
378 if status != 0: print '@@@STEP_FAILURE@@@' 378 if status != 0: print '@@@STEP_FAILURE@@@'
379 return status 379 return status
380 380
381 if __name__ == '__main__': 381 if __name__ == '__main__':
382 sys.exit(main()) 382 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698