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

Unified Diff: scripts/slave/recipe_modules/chromium/test_api.py

Issue 791733005: split out chromium_mojo recipe changes from chromium_mojo master cl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: update docstring Created 6 years 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
« no previous file with comments | « scripts/slave/recipe_modules/chromium/api.py ('k') | scripts/slave/recipes/chromium_gn.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium/test_api.py
diff --git a/scripts/slave/recipe_modules/chromium/test_api.py b/scripts/slave/recipe_modules/chromium/test_api.py
index 62375630e874a9e3c02aebaa4fe5556bfc4fa50f..7638892b79ecd948ec62b6ea55031b0e3264b64c 100644
--- a/scripts/slave/recipe_modules/chromium/test_api.py
+++ b/scripts/slave/recipe_modules/chromium/test_api.py
@@ -11,3 +11,31 @@ class ChromiumTestApi(recipe_test_api.RecipeTestApi):
@property
def builders(self):
return builders.BUILDERS
+
+ def gen_tests_for_builders(self, builder_dict):
+ # TODO: crbug.com/354674. Figure out where to put "simulation"
+ # tests. Is this really the right place?
+
+ def _sanitize_nonalpha(text):
+ return ''.join(c if c.isalnum() else '_' for c in text)
+
+ for mastername in builder_dict:
+ for buildername in builder_dict[mastername]['builders']:
+ if 'mac' in buildername or 'Mac' in buildername:
+ platform_name = 'mac'
+ elif 'win' in buildername or 'Win' in buildername:
+ platform_name = 'win'
+ else:
+ platform_name = 'linux'
+ test = (
+ self.test('full_%s_%s' % (_sanitize_nonalpha(mastername),
+ _sanitize_nonalpha(buildername))) +
+ self.m.platform.name(platform_name)
+ )
+ if mastername.startswith('tryserver'):
+ test += self.m.properties.tryserver(buildername=buildername,
+ mastername=mastername)
+ else:
+ test += self.m.properties.generic(buildername=buildername,
+ mastername=mastername)
+ yield test
« no previous file with comments | « scripts/slave/recipe_modules/chromium/api.py ('k') | scripts/slave/recipes/chromium_gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698