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

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

Issue 10827028: Print out browser version number also for Windows bots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « 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 """Dart frog buildbot steps 7 """Dart frog buildbot steps
8 8
9 Runs tests for the frog or dart2js compiler. 9 Runs tests for the frog or dart2js compiler.
10 """ 10 """
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 'chrome': os.path.join('C:/', 'Users', 'chrome-bot', 'AppData', 216 'chrome': os.path.join('C:/', 'Users', 'chrome-bot', 'AppData',
217 'Local', 'Google', 'Chrome', 'Application', 'chrome.exe')} 217 'Local', 'Google', 'Chrome', 'Application', 'chrome.exe')}
218 return path_dict[runtime] 218 return path_dict[runtime]
219 219
220 if system == 'linux' and runtime == 'chrome': 220 if system == 'linux' and runtime == 'chrome':
221 # TODO(ngeoffray): We should install selenium on the buildbot. 221 # TODO(ngeoffray): We should install selenium on the buildbot.
222 runtime = 'drt' 222 runtime = 'drt'
223 elif (runtime == 'ff' or runtime == 'chrome') and is_buildbot: 223 elif (runtime == 'ff' or runtime == 'chrome') and is_buildbot:
224 # Print out browser version numbers if we're running on the buildbot (where 224 # Print out browser version numbers if we're running on the buildbot (where
225 # we know the paths to these browser installations). 225 # we know the paths to these browser installations).
226 p = subprocess.Popen('%s --version' % GetPath(runtime), 226 version_query_string = '%s --version' % GetPath(runtime)
227 if runtime == 'ff' and system == 'win7':
228 version_query_string += '| more'
Siggi Cherem (dart-lang) 2012/07/26 00:50:11 I didn't know that '| more' was valid in win
229 elif runtime == 'chrome' and system == 'win7':
230 version_query_string = ('''reg query "HKCU\\Software\\Microsoft\\''' +
231 '''Windows\\CurrentVersion\\Uninstall\\Google Chrome" \\v Version''')
Siggi Cherem (dart-lang) 2012/07/26 00:50:11 AAAH! wow...
232 p = subprocess.Popen(version_query_string,
227 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 233 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
228 output, stderr = p.communicate() 234 output, stderr = p.communicate()
229 print 'Version of %s: %s' % (runtime, output) 235 output = output.split()
236 try:
237 print 'Version of %s: %s' % (runtime, output[-1])
238 except IndexError:
239 # Failed to obtain version information. Continue running tests.
240 pass
230 241
231 if compiler == 'dart2js': 242 if compiler == 'dart2js':
232 if option == 'checked': flags = flags + ['--host-checked'] 243 if option == 'checked': flags = flags + ['--host-checked']
233 244
234 if runtime == 'd8': 245 if runtime == 'd8':
235 # The dart2js compiler isn't self-hosted (yet) so we run its 246 # The dart2js compiler isn't self-hosted (yet) so we run its
236 # unit tests on the VM. We avoid doing this on the builders 247 # unit tests on the VM. We avoid doing this on the builders
237 # that run the browser tests to cut down on the cycle time. 248 # that run the browser tests to cut down on the cycle time.
238 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) 249 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags)
239 250
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if status == 0 and option != 'checked' and runtime == 'd8': 343 if status == 0 and option != 'checked' and runtime == 'd8':
333 status = TestCompiler(compiler, runtime, mode, system, option, 344 status = TestCompiler(compiler, runtime, mode, system, option,
334 test_flags + ['--checked'], is_buildbot) 345 test_flags + ['--checked'], is_buildbot)
335 346
336 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 347 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
337 if status != 0: print '@@@STEP_FAILURE@@@' 348 if status != 0: print '@@@STEP_FAILURE@@@'
338 return status 349 return status
339 350
340 if __name__ == '__main__': 351 if __name__ == '__main__':
341 sys.exit(main()) 352 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