Index: infra/recipes/android/perf.py |
diff --git a/infra/recipes/android/perf.py b/infra/recipes/android/perf.py |
index b1d4b8e4db737897ea5b7d78a1470b32c84b315a..f8940d0ebae92edf2a67d4dfc66eb1f0ca1c8796 100644 |
--- a/infra/recipes/android/perf.py |
+++ b/infra/recipes/android/perf.py |
@@ -156,6 +156,22 @@ def RunSteps(api): |
api.path['checkout'] = api.path['slave_build'].join('src') |
api.chromium_android.clean_local_files() |
+ # TODO(jbudorick): Remove this after resolving |
+ # https://github.com/catapult-project/catapult/issues/2901 |
+ devil_path = api.path['checkout'].join('third_party', 'catapult', 'devil') |
+ api.python.inline( |
+ 'initialize devil', |
+ """ |
+ import sys |
+ sys.path.append(sys.argv[1]) |
+ from devil import devil_env |
+ devil_env.config.Initialize() |
+ devil_env.config.PrefetchPaths(dependencies=['adb']) |
+ """, |
+ args=[devil_path]) |
+ api.adb.set_adb_path( |
+ devil_path.join('bin', 'deps', 'linux2', 'x86_64', 'bin', 'adb')) |
+ |
api.chromium_android.download_build(bucket=builder['bucket'], |
path=builder['path'](api)) |