Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: scripts/slave/recipe_modules/chromium_tests/steps.py

Issue 2063323002: Create recipe to run find_annotated_tests.py periodically (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Add into steps.py Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'),
« no previous file with comments | « masters/master.chromium.infra.cron/slaves.cfg ('k') | scripts/slave/recipes/android/find_annotated_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698