Bug 1599930 - Support --no-install for web platform tests. r=jgraham

Differential Revision: https://phabricator.services.mozilla.com/D55046

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2020-01-28 15:28:19 +00:00
parent 2b03cc0b92
commit abcab3d351
2 changed files with 6 additions and 2 deletions

View File

@ -47,7 +47,8 @@ class WebPlatformTestsRunnerSetup(MozbuildObject):
# Note that this import may fail in non-firefox-for-android trees
from mozrunner.devices.android_device import (verify_android_device, InstallIntent)
verify_android_device(self, install=InstallIntent.PROMPT, verbose=False, xre=True, app=package_name)
install = InstallIntent.NO if kwargs.pop('no_install') else InstallIntent.PROMPT
verify_android_device(self, install=install, verbose=False, xre=True, app=package_name)
if kwargs["certutil_binary"] is None:
kwargs["certutil_binary"] = os.path.join(os.environ.get('MOZ_HOST_BIN'), "certutil")

View File

@ -8,7 +8,10 @@ import sys
def create_parser_wpt():
from wptrunner import wptcommandline
return wptcommandline.create_parser(["firefox", "firefox_android", "chrome", "edge", "servo"])
result = wptcommandline.create_parser(["firefox", "firefox_android", "chrome", "edge", "servo"])
result.add_argument("--no-install", action="store_true", default=False,
help="Do not install test runner application")
return result
class WebPlatformTestsRunner(object):