| Index: scripts/slave/recipe_modules/cronet/api.py
|
| diff --git a/scripts/slave/recipe_modules/cronet/api.py b/scripts/slave/recipe_modules/cronet/api.py
|
| index bcba12d8085261ad97a573fbcf48b23c9160d0f5..47fbf12b7e09ee9d69469363f20787afe66a38d0 100644
|
| --- a/scripts/slave/recipe_modules/cronet/api.py
|
| +++ b/scripts/slave/recipe_modules/cronet/api.py
|
| @@ -108,3 +108,21 @@ class CronetApi(recipe_api.RecipeApi):
|
| **suite.get('kwargs', {}))
|
| droid.common_tests_final_steps()
|
|
|
| +
|
| + def run_perf_tests(self):
|
| + self.m.python('performance test', self.m.path['checkout'].join(
|
| + 'components', 'cronet', 'android', 'test', 'javaperftests', 'run.py'))
|
| +
|
| + def clear_landmines(self):
|
| + self.m.python.inline(
|
| + 'clear landmines',
|
| + """
|
| + import subprocess, sys
|
| + proc = subprocess.Popen(
|
| + sys.argv[1], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| + out, err = proc.communicate()
|
| + with open(sys.argv[2], 'w') as f:
|
| + f.writelines(out)
|
| + """,
|
| + args=[self.m.path['checkout'].join('build', 'get_landmines.py'),
|
| + self.m.path['checkout'].join('.landmines')])
|
|
|