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

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: rebase & add TODO 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..2e0d79ca6aece98e4238f7cebaf08d411de05a6d 100644
--- a/scripts/slave/recipe_modules/chromium/api.py
+++ b/scripts/slave/recipe_modules/chromium/api.py
@@ -623,3 +623,32 @@ 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 = {}
+ # TODO(phajdan.jr): Remove buildnumber when no longer used.
+ for name in ('buildername', 'slavename', 'buildnumber'):
+ 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