[Android] Add --adb-path arg to adb_command_line.py.

Some bots need to be able to configure the adb path.

BUG=

Review-Url: https://codereview.chromium.org/2155703002
Cr-Original-Commit-Position: refs/heads/master@{#405829}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ecd87eb94c77653c3a387371670bc5a1ad16fc4a
This commit is contained in:
jbudorick 2016-07-15 12:46:58 -07:00 коммит произвёл Commit bot
Родитель 9a19321fbd
Коммит f4675ed1f4
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -6,6 +6,7 @@
"""Utility for reading / writing command-line flag files on device(s)."""
import argparse
import os
import sys
import devil_chromium
@ -30,9 +31,11 @@ Otherwise: Writes command-line file.
help='Remote path to flags file.')
parser.add_argument('-e', '--executable', dest='executable', default='chrome',
help='Name of the executable.')
parser.add_argument('--adb-path', type=os.path.abspath,
help='Path to the adb binary.')
args, remote_args = parser.parse_known_args()
devil_chromium.Initialize()
devil_chromium.Initialize(adb_path=args.adb_path)
as_root = not args.device_path.startswith('/data/local/tmp/')