| 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 multiprocessing | 9 import multiprocessing |
| 10 import os | 10 import os |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 '--no-new-test-results', | 220 '--no-new-test-results', |
| 221 '--full-results-html', | 221 '--full-results-html', |
| 222 '--clobber-old-results', | 222 '--clobber-old-results', |
| 223 '--exit-after-n-failures', '5000', | 223 '--exit-after-n-failures', '5000', |
| 224 '--exit-after-n-crashes-or-timeouts', '100', | 224 '--exit-after-n-crashes-or-timeouts', '100', |
| 225 '--debug-rwt-logging', | 225 '--debug-rwt-logging', |
| 226 '--results-directory', '../layout-test-results', | 226 '--results-directory', '../layout-test-results', |
| 227 '--target', options.target, | 227 '--target', options.target, |
| 228 '--builder-name', options.build_properties.get('buildername', ''), | 228 '--builder-name', options.build_properties.get('buildername', ''), |
| 229 '--build-number', str(options.build_properties.get('buildnumber', '')), | 229 '--build-number', str(options.build_properties.get('buildnumber', '')), |
| 230 '--master-name', options.build_properties.get('mastername', ''), | 230 '--master-name', 'ChromiumWebKit', # TODO: Get this from the cfg. |
| 231 '--build-name', options.build_properties.get('buildername', ''), | 231 '--build-name', options.build_properties.get('buildername', ''), |
| 232 '--platform=android'] | 232 '--platform=android'] |
| 233 | 233 |
| 234 for flag in 'test_results_server', 'driver_name', 'additional_drt_flag': | 234 for flag in 'test_results_server', 'driver_name', 'additional_drt_flag': |
| 235 if flag in options.factory_properties: | 235 if flag in options.factory_properties: |
| 236 cmd_args.extend(['--%s' % flag.replace('_', '-'), | 236 cmd_args.extend(['--%s' % flag.replace('_', '-'), |
| 237 options.factory_properties.get(flag)]) | 237 options.factory_properties.get(flag)]) |
| 238 | 238 |
| 239 for f in options.factory_properties.get('additional_expectations', []): | 239 for f in options.factory_properties.get('additional_expectations', []): |
| 240 cmd_args.extend( | 240 cmd_args.extend( |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 479 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 480 if options.coverage_bucket: | 480 if options.coverage_bucket: |
| 481 setattr(options, 'coverage_dir', | 481 setattr(options, 'coverage_dir', |
| 482 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 482 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 483 | 483 |
| 484 MainTestWrapper(options) | 484 MainTestWrapper(options) |
| 485 | 485 |
| 486 | 486 |
| 487 if __name__ == '__main__': | 487 if __name__ == '__main__': |
| 488 sys.exit(main(sys.argv)) | 488 sys.exit(main(sys.argv)) |
| OLD | NEW |