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

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

Issue 1577983006: Support official Chrome builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 11 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/api.py
diff --git a/scripts/slave/recipe_modules/chromium_tests/api.py b/scripts/slave/recipe_modules/chromium_tests/api.py
index 25292663aeffa3ee9c0fba4d56c06ae1ccdb9c03..7d4961fc869268678c45edcc78dd9b3512bfd24e 100644
--- a/scripts/slave/recipe_modules/chromium_tests/api.py
+++ b/scripts/slave/recipe_modules/chromium_tests/api.py
@@ -182,6 +182,11 @@ class ChromiumTestsApi(recipe_api.RecipeApi):
def get_test_spec(self, mastername, buildername):
bot_config = self._get_bot_config(mastername, buildername)
+ # The official builders specify the test spec using a test_spec property in
+ # the bot_config instead of reading it from a file.
+ if 'test_spec' in bot_config:
+ return { buildername: bot_config['test_spec'] }
+
test_spec_file = bot_config.get('testing', {}).get(
'test_spec_file', '%s.json' % mastername)

Powered by Google App Engine
This is Rietveld 408576698