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 multiprocessing | 8 import multiprocessing |
9 import os | 9 import os |
10 import shutil | 10 import shutil |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 '--clobber-old-results', | 206 '--clobber-old-results', |
207 '--exit-after-n-failures', '5000', | 207 '--exit-after-n-failures', '5000', |
208 '--exit-after-n-crashes-or-timeouts', '100', | 208 '--exit-after-n-crashes-or-timeouts', '100', |
209 '--debug-rwt-logging', | 209 '--debug-rwt-logging', |
210 '--results-directory', '..layout-test-results', | 210 '--results-directory', '..layout-test-results', |
211 '--target', options.target, | 211 '--target', options.target, |
212 '--builder-name', options.build_properties.get('buildername', ''), | 212 '--builder-name', options.build_properties.get('buildername', ''), |
213 '--build-number', str(options.build_properties.get('buildnumber', '')), | 213 '--build-number', str(options.build_properties.get('buildnumber', '')), |
214 '--master-name', options.build_properties.get('mastername', ''), | 214 '--master-name', options.build_properties.get('mastername', ''), |
215 '--build-name', options.build_properties.get('buildername', ''), | 215 '--build-name', options.build_properties.get('buildername', ''), |
216 '--platform=chromium-android'] | 216 '--platform=android'] |
217 | 217 |
218 for flag in 'test_results_server', 'driver_name', 'additional_drt_flag': | 218 for flag in 'test_results_server', 'driver_name', 'additional_drt_flag': |
219 if flag in options.factory_properties: | 219 if flag in options.factory_properties: |
220 cmd_args.extend(['--%s' % flag.replace('_', '-'), | 220 cmd_args.extend(['--%s' % flag.replace('_', '-'), |
221 options.factory_properties.get(flag)]) | 221 options.factory_properties.get(flag)]) |
222 | 222 |
223 for f in options.factory_properties.get('additional_expectations', []): | 223 for f in options.factory_properties.get('additional_expectations', []): |
224 cmd_args.extend( | 224 cmd_args.extend( |
225 ['--additional-expectations=%s' % os.path.join(CHROME_SRC, *f)]) | 225 ['--additional-expectations=%s' % os.path.join(CHROME_SRC, *f)]) |
226 | 226 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 return sys.exit('Unknown tests %s' % list(unknown_tests)) | 381 return sys.exit('Unknown tests %s' % list(unknown_tests)) |
382 | 382 |
383 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 383 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
384 | 384 |
385 MainTestWrapper(options) | 385 MainTestWrapper(options) |
386 provision_devices.KillHostHeartbeat() | 386 provision_devices.KillHostHeartbeat() |
387 | 387 |
388 | 388 |
389 if __name__ == '__main__': | 389 if __name__ == '__main__': |
390 sys.exit(main(sys.argv)) | 390 sys.exit(main(sys.argv)) |
OLD | NEW |