diff options
Diffstat (limited to 'etc/run_in_headless_android_emulator.py')
-rwxr-xr-x | etc/run_in_headless_android_emulator.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/run_in_headless_android_emulator.py b/etc/run_in_headless_android_emulator.py index 1d2959e4f06..c76ea3b71e7 100755 --- a/etc/run_in_headless_android_emulator.py +++ b/etc/run_in_headless_android_emulator.py @@ -176,12 +176,17 @@ def extract_arg(name, args): def extract_args(name, args): + assert "=" not in name previous_arg_matches = False for i, arg in enumerate(args): if previous_arg_matches: yield i, arg previous_arg_matches = arg == name + arg, sep, value = arg.partition("=") + if arg == name and sep == "=": + yield i, value + def wait_for_tcp_server(adb, port): while call(adb + ["shell", "nc -z 127.0.0.1 %s" % port], stdout=sys.stderr) != 0: |