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

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

Issue 10831093: Fix slash direction on Windows. (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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 version_query_string = '"%s" --version' % GetPath(runtime) 226 version_query_string = '"%s" --version' % GetPath(runtime)
227 if runtime == 'ff' and system == 'win7': 227 if runtime == 'ff' and system == 'win7':
228 version_query_string += '| more' 228 version_query_string += '| more'
229 elif runtime == 'chrome' and system == 'win7': 229 elif runtime == 'chrome' and system == 'win7':
230 version_query_string = ('''reg query "HKCU\\Software\\Microsoft\\''' + 230 version_query_string = ('''reg query "HKCU\\Software\\Microsoft\\''' +
231 '''Windows\\CurrentVersion\\Uninstall\\Google Chrome" \\v Version''') 231 '''Windows\\CurrentVersion\\Uninstall\\Google Chrome" /v Version''')
232 p = subprocess.Popen(version_query_string, 232 p = subprocess.Popen(version_query_string,
233 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 233 stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
234 output, stderr = p.communicate() 234 output, stderr = p.communicate()
235 output = output.split() 235 output = output.split()
236 try: 236 try:
237 print 'Version of %s: %s' % (runtime, output[-1]) 237 print 'Version of %s: %s' % (runtime, output[-1])
238 except IndexError: 238 except IndexError:
239 # Failed to obtain version information. Continue running tests. 239 # Failed to obtain version information. Continue running tests.
240 pass 240 pass
241 241
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 if status == 0 and option != 'checked' and runtime == 'd8': 343 if status == 0 and option != 'checked' and runtime == 'd8':
344 status = TestCompiler(compiler, runtime, mode, system, option, 344 status = TestCompiler(compiler, runtime, mode, system, option,
345 test_flags + ['--checked'], is_buildbot) 345 test_flags + ['--checked'], is_buildbot)
346 346
347 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 347 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
348 if status != 0: print '@@@STEP_FAILURE@@@' 348 if status != 0: print '@@@STEP_FAILURE@@@'
349 return status 349 return status
350 350
351 if __name__ == '__main__': 351 if __name__ == '__main__':
352 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