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 |
11 import sys | 11 import sys |
12 | 12 |
13 import bb_utils | 13 import bb_utils |
| 14 import buildbot_report |
14 | 15 |
15 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) | 16 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) |
16 from pylib import android_commands | 17 from pylib import android_commands |
17 from pylib import buildbot_report | |
18 from pylib import constants | 18 from pylib import constants |
19 from pylib.gtest import gtest_config | 19 from pylib.gtest import gtest_config |
20 | 20 |
21 sys.path.append(os.path.join( | 21 sys.path.append(os.path.join( |
22 constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner')) | 22 constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner')) |
23 import errors | 23 import errors |
24 | 24 |
25 | 25 |
26 CHROME_SRC = constants.DIR_SOURCE_ROOT | 26 CHROME_SRC = constants.DIR_SOURCE_ROOT |
27 LOGCAT_DIR = os.path.join(CHROME_SRC, 'out', 'logcat') | 27 LOGCAT_DIR = os.path.join(CHROME_SRC, 'out', 'logcat') |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 if unknown_tests: | 376 if unknown_tests: |
377 return sys.exit('Unknown tests %s' % list(unknown_tests)) | 377 return sys.exit('Unknown tests %s' % list(unknown_tests)) |
378 | 378 |
379 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 379 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
380 | 380 |
381 MainTestWrapper(options) | 381 MainTestWrapper(options) |
382 | 382 |
383 | 383 |
384 if __name__ == '__main__': | 384 if __name__ == '__main__': |
385 sys.exit(main(sys.argv)) | 385 sys.exit(main(sys.argv)) |
OLD | NEW |