aboutsummaryrefslogtreecommitdiff
path: root/catapult/devil/devil/android/tools/wait_for_devices.py
diff options
context:
space:
mode:
Diffstat (limited to 'catapult/devil/devil/android/tools/wait_for_devices.py')
-rwxr-xr-xcatapult/devil/devil/android/tools/wait_for_devices.py20
1 files changed, 13 insertions, 7 deletions
diff --git a/catapult/devil/devil/android/tools/wait_for_devices.py b/catapult/devil/devil/android/tools/wait_for_devices.py
index bc733355..062f788f 100755
--- a/catapult/devil/devil/android/tools/wait_for_devices.py
+++ b/catapult/devil/devil/android/tools/wait_for_devices.py
@@ -2,7 +2,6 @@
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-
"""Waits for the given devices to be available."""
import argparse
@@ -11,8 +10,8 @@ import sys
if __name__ == '__main__':
sys.path.append(
- os.path.abspath(os.path.join(os.path.dirname(__file__),
- '..', '..', '..')))
+ os.path.abspath(
+ os.path.join(os.path.dirname(__file__), '..', '..', '..')))
from devil.android import device_utils
from devil.android.tools import script_common
@@ -22,11 +21,18 @@ from devil.utils import run_tests_helper
def main(raw_args):
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--verbose', action='count', help='Log more.')
- parser.add_argument('-t', '--timeout', default=30, type=int,
- help='Seconds to wait for the devices.')
+ parser.add_argument(
+ '-t',
+ '--timeout',
+ default=30,
+ type=int,
+ help='Seconds to wait for the devices.')
parser.add_argument('--adb-path', help='ADB binary to use.')
- parser.add_argument('device_serials', nargs='*', metavar='SERIAL',
- help='Serials of the devices to wait for.')
+ parser.add_argument(
+ 'device_serials',
+ nargs='*',
+ metavar='SERIAL',
+ help='Serials of the devices to wait for.')
args = parser.parse_args(raw_args)