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

Unified Diff: blimp/tools/client_engine_integration.py

Issue 2503453004: Add '--adb-path' argument to integration script to modify adb version (Closed)
Patch Set: john's comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/tools/client_engine_integration.py
diff --git a/blimp/tools/client_engine_integration.py b/blimp/tools/client_engine_integration.py
index e28c641d49753f3ff9c29184f59077b426256470..f1fabec8c858b86f40e2d1b0ace53292ebb4e113 100755
--- a/blimp/tools/client_engine_integration.py
+++ b/blimp/tools/client_engine_integration.py
@@ -25,6 +25,12 @@ SRC_PATH = os.path.abspath(
DEVIL_PATH = os.path.join(SRC_PATH, 'third_party', 'catapult',
'devil')
+DEVIL_CHROMIUM_PATH = os.path.join(SRC_PATH, 'build', 'android')
+
+if DEVIL_CHROMIUM_PATH not in sys.path:
+ sys.path.append(DEVIL_CHROMIUM_PATH)
+
+import devil_chromium
if DEVIL_PATH not in sys.path:
sys.path.append(DEVIL_PATH)
@@ -273,6 +279,9 @@ def main():
required=True,
help='Path to the root linux build directory.'
' Example: "out-linux/Debug"')
+ parser.add_argument('--adb-path',
+ type=os.path.abspath,
+ help='Path to the adb binary.')
subparsers = parser.add_subparsers(dest="subparser_name")
start_parser = subparsers.add_parser('start')
@@ -299,6 +308,7 @@ def main():
stop_parser.set_defaults(func=_Stop)
args = parser.parse_args()
+ devil_chromium.Initialize(adb_path=args.adb_path)
json_file_path = os.path.join(SRC_PATH, args.output_linux_directory,
ARGS_JSON_FILE)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698