OLD | NEW |
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 Loading... |
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 Loading... |
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()) |
OLD | NEW |