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

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 26311004: More swapped arg fixes after r227967. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import collections 6 import collections
7 import glob 7 import glob
8 import hashlib 8 import hashlib
9 import json 9 import json
10 import multiprocessing 10 import multiprocessing
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 exit_code = RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py'] + 264 exit_code = RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py'] +
265 cmd_args) 265 cmd_args)
266 if exit_code == 254: # AKA -1, internal error. 266 if exit_code == 254: # AKA -1, internal error.
267 bb_annotations.PrintMsg('?? (crashed or hung)') 267 bb_annotations.PrintMsg('?? (crashed or hung)')
268 else: 268 else:
269 full_results_path = os.path.join('..', 'layout-test-results', 269 full_results_path = os.path.join('..', 'layout-test-results',
270 'full_results.json') 270 'full_results.json')
271 if os.path.exists(full_results_path): 271 if os.path.exists(full_results_path):
272 full_results = json.load(open(full_results_path)) 272 full_results = json.load(open(full_results_path))
273 unexpected_passes, unexpected_flakes, unexpected_failures = ( 273 unexpected_passes, unexpected_failures, unexpected_flakes = (
274 _ParseLayoutTestResults(full_results)) 274 _ParseLayoutTestResults(full_results))
275 if unexpected_failures: 275 if unexpected_failures:
276 _PrintDashboardLink('failed', unexpected_failures, 276 _PrintDashboardLink('failed', unexpected_failures,
277 max_tests=25) 277 max_tests=25)
278 elif unexpected_passes: 278 elif unexpected_passes:
279 _PrintDashboardLink('unexpected passes', unexpected_passes, 279 _PrintDashboardLink('unexpected passes', unexpected_passes,
280 max_tests=10) 280 max_tests=10)
281 if unexpected_flakes: 281 if unexpected_flakes:
282 _PrintDashboardLink('unexpected flakes', unexpected_flakes, 282 _PrintDashboardLink('unexpected flakes', unexpected_flakes,
283 max_tests=10) 283 max_tests=10)
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 574 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
575 if options.coverage_bucket: 575 if options.coverage_bucket:
576 setattr(options, 'coverage_dir', 576 setattr(options, 'coverage_dir',
577 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 577 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
578 578
579 MainTestWrapper(options) 579 MainTestWrapper(options)
580 580
581 581
582 if __name__ == '__main__': 582 if __name__ == '__main__':
583 sys.exit(main(sys.argv)) 583 sys.exit(main(sys.argv))
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