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

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

Issue 666023004: Use src-side launcher for telemetry_unittests in chromium_trybot recipe (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 years, 2 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/steps.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 8ae7076f99d172df4ad9b9bf215e0ee3049beabd..5853c902d1837101cc85a0f372269cbca9848553 100644
--- a/scripts/slave/recipe_modules/chromium/api.py
+++ b/scripts/slave/recipe_modules/chromium/api.py
@@ -623,3 +623,31 @@ class ChromiumApi(recipe_api.RecipeApi):
'27eac9b2869ef6c89391f305a3f01285ea317867',
'9d9a93134b3eabd003b85b4e7dea06c0eae150ed',
])
+
+ def get_common_args_for_scripts(self):
+ args = []
+
+ args.extend(['--build-config-fs', self.c.build_config_fs])
+
+ paths = {}
+ for path in ('build',):
+ paths[path] = self.m.path[path]
+ args.extend(['--paths', self.m.json.input(paths)])
+
+ properties = {}
+ for name in ('buildername', 'slavename', 'buildnumber'):
iannucci 2014/10/21 18:02:47 yikes! buildnumber is /extremely dangerous/. What
Paweł Hajdan Jr. 2014/10/22 11:18:26 e.g. runtest.py Could you explain more though why
iannucci 2014/10/22 18:58:41 It's ephemeral data. It's not tied to anything rea
+ properties[name] = self.m.properties[name]
+ args.extend(['--properties', self.m.json.input(properties)])
+
+ return args
+
+ def get_compile_targets_for_scripts(self):
+ return self.m.python(
+ name='get compile targets for scripts',
+ script=self.m.path['checkout'].join(
+ 'testing', 'scripts', 'get_compile_targets.py'),
+ args=[
+ '--output', self.m.json.output(),
+ '--',
+ ] + self.get_common_args_for_scripts(),
+ step_test_data=lambda: self.m.json.test_api.output({}))
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698