Chromium Code Reviews| 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({})) |