Commit 992d97b4 authored by Andrew Luo's avatar Andrew Luo Committed by Commit Bot

Fix webview max restarts when --device-serial is not specified.

Test: wpt run --test-type=testharness android_webview --no-manifest-download
Change-Id: Iefbfb67d37be0281c0520fb9a6cb7e23995c611b
Bug: 1011098
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1867038
Commit-Queue: Andrew Luo <aluo@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707158}
parent efd8a152
......@@ -54,7 +54,7 @@ def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
capabilities["goog:chromeOptions"]["androidPackage"] = \
"org.chromium.webview_shell"
capabilities["goog:chromeOptions"]["androidActivity"] = ".WebPlatformTestsActivity"
if 'device_serial' in kwargs:
if kwargs.get('device_serial'):
capabilities["goog:chromeOptions"]["androidDeviceSerial"] = kwargs['device_serial']
# Workaround: driver.quit() cannot quit SystemWebViewShell.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment