diff options
Diffstat (limited to 'tools/skpbench/skpbench.py')
-rwxr-xr-x | tools/skpbench/skpbench.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py index ef44577c53..6b4c555a76 100755 --- a/tools/skpbench/skpbench.py +++ b/tools/skpbench/skpbench.py @@ -61,11 +61,13 @@ __argparse.add_argument('-a', '--resultsfile', __argparse.add_argument('skps', nargs='+', help=".skp files or directories to expand for .skp files") +__argparse.add_argument('--adb_binary', default='adb', + help="The name of the adb binary to use.") FLAGS = __argparse.parse_args() if FLAGS.adb: import _adb_path as _path - _path.init(FLAGS.device_serial) + _path.init(FLAGS.device_serial, FLAGS.adb_binary) else: import _os_path as _path @@ -110,9 +112,9 @@ class SKPBench: ARGV.extend(['--fps', 'true']) if FLAGS.adb: if FLAGS.device_serial is None: - ARGV[:0] = ['adb', 'shell'] + ARGV[:0] = [FLAGS.adb_binary, 'shell'] else: - ARGV[:0] = ['adb', '-s', FLAGS.device_serial, 'shell'] + ARGV[:0] = [FLAGS.adb_binary, '-s', FLAGS.device_serial, 'shell'] @classmethod def get_header(cls, outfile=sys.stdout): @@ -278,7 +280,8 @@ def main(): skps = _path.find_skps(FLAGS.skps) if FLAGS.adb: - adb = Adb(FLAGS.device_serial, echo=(FLAGS.verbosity >= 5)) + adb = Adb(FLAGS.device_serial, FLAGS.adb_binary, + echo=(FLAGS.verbosity >= 5)) model = adb.check('getprop ro.product.model').strip() if model == 'Pixel C': from _hardware_pixel_c import HardwarePixelC |