| 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 os | 10 import os |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 InstallablePackage = collections.namedtuple('InstallablePackage', [ | 87 InstallablePackage = collections.namedtuple('InstallablePackage', [ |
| 88 'name', 'apk', 'apk_package']) | 88 'name', 'apk', 'apk_package']) |
| 89 | 89 |
| 90 INSTALLABLE_PACKAGES = dict((package.name, package) for package in ( | 90 INSTALLABLE_PACKAGES = dict((package.name, package) for package in ( |
| 91 [InstallablePackage(i.name, i.apk, i.apk_package) | 91 [InstallablePackage(i.name, i.apk, i.apk_package) |
| 92 for i in INSTRUMENTATION_TESTS.itervalues()] + | 92 for i in INSTRUMENTATION_TESTS.itervalues()] + |
| 93 [InstallablePackage('ChromeDriverWebViewShell', | 93 [InstallablePackage('ChromeDriverWebViewShell', |
| 94 'ChromeDriverWebViewShell.apk', | 94 'ChromeDriverWebViewShell.apk', |
| 95 'org.chromium.chromedriver_webview_shell')])) | 95 'org.chromium.chromedriver_webview_shell')])) |
| 96 | 96 |
| 97 VALID_TESTS = set(['chromedriver', 'chrome_proxy', 'components_browsertests', | 97 VALID_TESTS = set([ |
| 98 'gfx_unittests', 'gpu', 'python_unittests', | 98 'base_junit_tests', |
| 99 'telemetry_unittests', 'telemetry_perf_unittests', 'ui', | 99 'chromedriver', |
| 100 'unit', 'webkit', 'webkit_layout']) | 100 'chrome_proxy', |
| 101 'components_browsertests', |
| 102 'gfx_unittests', |
| 103 'gpu', |
| 104 'python_unittests', |
| 105 'telemetry_unittests', |
| 106 'telemetry_perf_unittests', |
| 107 'ui', |
| 108 'unit', |
| 109 'webkit', |
| 110 'webkit_layout' |
| 111 ]) |
| 101 | 112 |
| 102 RunCmd = bb_utils.RunCmd | 113 RunCmd = bb_utils.RunCmd |
| 103 | 114 |
| 104 | 115 |
| 105 def _GetRevision(options): | 116 def _GetRevision(options): |
| 106 """Get the SVN revision number. | 117 """Get the SVN revision number. |
| 107 | 118 |
| 108 Args: | 119 Args: |
| 109 options: options object. | 120 options: options object. |
| 110 | 121 |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 | 784 |
| 774 if options.coverage_bucket: | 785 if options.coverage_bucket: |
| 775 setattr(options, 'coverage_dir', | 786 setattr(options, 'coverage_dir', |
| 776 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 787 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 777 | 788 |
| 778 MainTestWrapper(options) | 789 MainTestWrapper(options) |
| 779 | 790 |
| 780 | 791 |
| 781 if __name__ == '__main__': | 792 if __name__ == '__main__': |
| 782 sys.exit(main(sys.argv)) | 793 sys.exit(main(sys.argv)) |
| OLD | NEW |