| Index: scripts/slave/recipe_modules/chromium_tests/steps.py
|
| diff --git a/scripts/slave/recipe_modules/chromium_tests/steps.py b/scripts/slave/recipe_modules/chromium_tests/steps.py
|
| index ad0b3ee6ea8945f84f16b5117590492a507de7d4..f3da165946985cf2c82e87501d63b807dd58cf9c 100644
|
| --- a/scripts/slave/recipe_modules/chromium_tests/steps.py
|
| +++ b/scripts/slave/recipe_modules/chromium_tests/steps.py
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import datetime
|
| import re
|
| import string
|
|
|
| @@ -1862,6 +1863,45 @@ class IncrementalCoverageTest(Test):
|
| api.chromium_android.get_changed_lines_for_revision()
|
| api.chromium_android.incremental_coverage_report()
|
|
|
| +class FindAnnotatedTest(Test):
|
| + test_apks = {
|
| + 'android_webview_test_apk': 'AndroidWebViewTest',
|
| + 'blimp_test_apk': 'BlimpTest',
|
| + 'chrome_public_test_apk': 'ChromePublicTest',
|
| + 'chrome_sync_shell_test_apk': 'ChromeSyncShellTest',
|
| + 'content_shell_test_apk': 'ContentShellTest',
|
| + 'system_webview_shell_layout_test_apk': 'SystemWebViewShellLayoutTest',
|
| + }
|
| +
|
| + @staticmethod
|
| + def compile_targets(api):
|
| + return FindAnnotatedTest.test_apks.keys()
|
| +
|
| + def failures(self, api, suffix):
|
| + return []
|
| +
|
| + def run(self, api, suffix, test_filter=None):
|
| + try:
|
| + temp_output_dir = api.path.mkdtemp('annotated_tests_json_temp')
|
| + timestamp = datetime.datetime.utcnow()
|
| + timestamp_string = timestamp.strftime('%Y%m%dT%H%M%S')
|
| +
|
| + api.python(
|
| + 'run find_annotated_tests.py',
|
| + api.path['checkout'].join(
|
| + 'tools', 'android', 'find_annotated_tests.py'),
|
| + args = [
|
| + '--test-apks', ' '.join(FindAnnotatedTest.test_apks.values()),
|
| + '--apk-output-dir', api.chromium.output_dir,
|
| + '--json-output-dir', temp_output_dir,
|
| + '--timestamp-string', timestamp_string,
|
| + '-v'])
|
| + api.gsutil.upload(
|
| + temp_output_dir.join(
|
| + '%s-android-chrome.json' % timestamp_string),
|
| + 'chromium-annotated-tests', 'android')
|
| + finally:
|
| + api.file.rmtree('Delete temp out directory', temp_output_dir)
|
|
|
| GOMA_TESTS = [
|
| GTestTest('base_unittests'),
|
|
|