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 json | 8 import json |
9 import multiprocessing | 9 import multiprocessing |
10 import optparse | 10 import optparse |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 SpawnCmd(['build/android/adb_logcat_monitor.py', logcat_dir]) | 232 SpawnCmd(['build/android/adb_logcat_monitor.py', logcat_dir]) |
233 | 233 |
234 # Wait for logcat_monitor to pull existing logcat | 234 # Wait for logcat_monitor to pull existing logcat |
235 RunCmd(['sleep', '5']) | 235 RunCmd(['sleep', '5']) |
236 | 236 |
237 if options.reboot: | 237 if options.reboot: |
238 RebootDevices() | 238 RebootDevices() |
239 | 239 |
240 # Device check and alert emails | 240 # Device check and alert emails |
241 buildbot_report.PrintNamedStep('device_status_check') | 241 buildbot_report.PrintNamedStep('device_status_check') |
242 RunCmd(['build/android/device_status_check.py'], flunk_on_failure=False) | 242 RunCmd(['build/android/device_status_check.py'], flunk_on_failure=True) |
Isaac (away)
2013/03/13 02:54:11
just remove this argument, it defaults to True
Siva Chandra
2013/03/13 20:58:15
Done.
| |
243 | 243 |
244 if options.install: | 244 if options.install: |
245 test_obj = INSTRUMENTATION_TESTS[options.install] | 245 test_obj = INSTRUMENTATION_TESTS[options.install] |
246 InstallApk(options, test_obj, print_step=True) | 246 InstallApk(options, test_obj, print_step=True) |
247 | 247 |
248 if 'unit' in options.test_filter: | 248 if 'unit' in options.test_filter: |
249 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) | 249 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) |
250 if 'ui' in options.test_filter: | 250 if 'ui' in options.test_filter: |
251 for test in INSTRUMENTATION_TESTS.itervalues(): | 251 for test in INSTRUMENTATION_TESTS.itervalues(): |
252 RunInstrumentationSuite(options, test) | 252 RunInstrumentationSuite(options, test) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 'slave', 'android')) | 324 'slave', 'android')) |
325 if os.path.exists(build_internal_android): | 325 if os.path.exists(build_internal_android): |
326 android_paths.insert(0, build_internal_android) | 326 android_paths.insert(0, build_internal_android) |
327 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) | 327 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) |
328 | 328 |
329 MainTestWrapper(options) | 329 MainTestWrapper(options) |
330 | 330 |
331 | 331 |
332 if __name__ == '__main__': | 332 if __name__ == '__main__': |
333 sys.exit(main(sys.argv)) | 333 sys.exit(main(sys.argv)) |
OLD | NEW |