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

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

Issue 873403002: Add support for cc_perftests and other non-telemetry gtest based tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase again + coverage. Created 5 years, 10 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/chromium_perf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium/api.py
diff --git a/scripts/slave/recipe_modules/chromium/api.py b/scripts/slave/recipe_modules/chromium/api.py
index 5fefb548fc0a1af334d65f40ab5b69bfd70697e6..b968cd2cfef7f5bdac4a7fe53d2dfcf470f5e5e6 100644
--- a/scripts/slave/recipe_modules/chromium/api.py
+++ b/scripts/slave/recipe_modules/chromium/api.py
@@ -703,8 +703,22 @@ class ChromiumApi(recipe_api.RecipeApi):
properties = {}
# TODO(phajdan.jr): Remove buildnumber when no longer used.
- for name in ('buildername', 'slavename', 'buildnumber'):
+
+ mastername = self.m.properties.get('mastername')
+ buildername = self.m.properties.get('buildername')
+ master_dict = self.builders.get(mastername, {})
+ bot_config = master_dict.get('builders', {}).get(buildername, {})
+
+ for name in ('buildername', 'slavename', 'buildnumber', 'mastername'):
properties[name] = self.m.properties[name]
+
+ # Optional properties
+ for name in ('perf-id', 'results-url'):
+ if bot_config.get(name):
+ properties[name] = bot_config[name]
+
+ properties['target_platform'] = self.c.TARGET_PLATFORM
+
args.extend(['--properties', self.m.json.input(properties)])
return args
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/chromium_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698