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

Side by Side Diff: tools/bots/compiler.py

Issue 16138002: Change annotated steps to use windows as system no matter if we are on win7 or win8 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Dart2js buildbot steps 8 Dart2js buildbot steps
9 9
10 Runs tests for the dart2js compiler. 10 Runs tests for the dart2js compiler.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 host_checked = True 73 host_checked = True
74 if dart2js_pattern.group(8) == 'host-checked': 74 if dart2js_pattern.group(8) == 'host-checked':
75 host_checked = True 75 host_checked = True
76 if dart2js_pattern.group(10) == 'minified': 76 if dart2js_pattern.group(10) == 'minified':
77 minified = True 77 minified = True
78 shard_index = dart2js_pattern.group(11) 78 shard_index = dart2js_pattern.group(11)
79 total_shards = dart2js_pattern.group(12) 79 total_shards = dart2js_pattern.group(12)
80 else : 80 else :
81 return None 81 return None
82 82
83 if system == 'windows': 83 # We have both win7 and win8 bots, functionality is the same.
84 system = 'win7' 84 if system.startsWith('win'):
85 system = 'windows'
85 86
86 # We have both 10.8 and 10.7 bots, functionality is the same. 87 # We have both 10.8 and 10.7 bots, functionality is the same.
87 if system == 'mac10.8' or system == 'mac10.7': 88 if system == 'mac10.8' or system == 'mac10.7':
88 system = 'mac' 89 system = 'mac'
89 90
90 if (system == 'win7' and platform.system() != 'Windows') or ( 91 if (system == 'win7' and platform.system() != 'Windows') or (
91 system == 'mac' and platform.system() != 'Darwin') or ( 92 system == 'mac' and platform.system() != 'Darwin') or (
92 system == 'linux' and platform.system() != 'Linux'): 93 system == 'linux' and platform.system() != 'Linux'):
93 print ('Error: You cannot emulate a buildbot with a platform different ' 94 print ('Error: You cannot emulate a buildbot with a platform different '
94 'from your own.') 95 'from your own.')
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 """ 379 """
379 with bot.BuildStep('Build SDK and d8'): 380 with bot.BuildStep('Build SDK and d8'):
380 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 381 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
381 'dart2js_bot'] 382 'dart2js_bot']
382 print 'Build SDK and d8: %s' % (' '.join(args)) 383 print 'Build SDK and d8: %s' % (' '.join(args))
383 bot.RunProcess(args) 384 bot.RunProcess(args)
384 385
385 386
386 if __name__ == '__main__': 387 if __name__ == '__main__':
387 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 388 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
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