OLD | NEW |
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 build_number = str(options.build_properties.get('buildnumber', '')) | 305 build_number = str(options.build_properties.get('buildnumber', '')) |
306 results_link = '%s/%s/%s/layout-test-results/results.html' % ( | 306 results_link = '%s/%s/%s/layout-test-results/results.html' % ( |
307 base, EscapeBuilderName(builder_name), build_number) | 307 base, EscapeBuilderName(builder_name), build_number) |
308 bb_annotations.PrintLink('results', results_link) | 308 bb_annotations.PrintLink('results', results_link) |
309 bb_annotations.PrintLink('(zip)', '%s/%s/%s/layout-test-results.zip' % ( | 309 bb_annotations.PrintLink('(zip)', '%s/%s/%s/layout-test-results.zip' % ( |
310 base, EscapeBuilderName(builder_name), build_number)) | 310 base, EscapeBuilderName(builder_name), build_number)) |
311 gs_bucket = 'gs://chromium-layout-test-archives' | 311 gs_bucket = 'gs://chromium-layout-test-archives' |
312 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'chromium', | 312 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'chromium', |
313 'archive_layout_test_results.py'), | 313 'archive_layout_test_results.py'), |
314 '--results-dir', '../../layout-test-results', | 314 '--results-dir', '../../layout-test-results', |
315 '--build-dir', CHROME_OUT_DIR, | |
316 '--build-number', build_number, | 315 '--build-number', build_number, |
317 '--builder-name', builder_name, | 316 '--builder-name', builder_name, |
318 '--gs-bucket', gs_bucket], | 317 '--gs-bucket', gs_bucket], |
319 cwd=DIR_BUILD_ROOT) | 318 cwd=DIR_BUILD_ROOT) |
320 | 319 |
321 | 320 |
322 def _ParseLayoutTestResults(results): | 321 def _ParseLayoutTestResults(results): |
323 """Extract the failures from the test run.""" | 322 """Extract the failures from the test run.""" |
324 # Cloned from third_party/WebKit/Tools/Scripts/print-json-test-results | 323 # Cloned from third_party/WebKit/Tools/Scripts/print-json-test-results |
325 tests = _ConvertTrieToFlatPaths(results['tests']) | 324 tests = _ConvertTrieToFlatPaths(results['tests']) |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 604 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
606 if options.coverage_bucket: | 605 if options.coverage_bucket: |
607 setattr(options, 'coverage_dir', | 606 setattr(options, 'coverage_dir', |
608 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 607 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
609 | 608 |
610 MainTestWrapper(options) | 609 MainTestWrapper(options) |
611 | 610 |
612 | 611 |
613 if __name__ == '__main__': | 612 if __name__ == '__main__': |
614 sys.exit(main(sys.argv)) | 613 sys.exit(main(sys.argv)) |
OLD | NEW |