Chromium Code Reviews

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

Issue 1818083003: Create symlink to adb in home dir right before device setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Nit Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/cronet/example.expected/local_test.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium_android/api.py
diff --git a/scripts/slave/recipe_modules/chromium_android/api.py b/scripts/slave/recipe_modules/chromium_android/api.py
index 62c36366902ace5766b661f4aa68929c713964d5..c7ad0e1f6919ce9355de4084f94cae69e5cfa329 100644
--- a/scripts/slave/recipe_modules/chromium_android/api.py
+++ b/scripts/slave/recipe_modules/chromium_android/api.py
@@ -263,6 +263,14 @@ class AndroidApi(recipe_api.RecipeApi):
src_dir=self.m.path['slave_build'].join('src'),
exclude_files='lib.target,gen,android_webview,jingle_unittests')
+ def create_adb_symlink(self):
+ # Creates a sym link to the adb executable in the home dir
+ self.m.python(
+ 'create adb symlink',
+ self.m.path['checkout'].join('build', 'symlink.py'),
+ ['-f', self.m.adb.adb_path(), os.path.join('~', 'adb')],
+ infra_step=True)
+
def spawn_logcat_monitor(self):
self.m.step(
'spawn_logcat_monitor',
@@ -846,6 +854,7 @@ class AndroidApi(recipe_api.RecipeApi):
def common_tests_setup_steps(self, perf_setup=False,
remove_system_webview=False):
+ self.create_adb_symlink()
if self.c.gce_setup:
self.launch_gce_instances(snapshot=self.c.gce_snapshot, count=self.c.gce_count)
self.spawn_logcat_monitor()
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/cronet/example.expected/local_test.json » ('j') | no next file with comments »

Powered by Google App Engine