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

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

Issue 1292783004: Run Cronet perf test on Cronet bot Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 4 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
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')])

Powered by Google App Engine
This is Rietveld 408576698