Bug 1496627 - Run the emulator automatically r=gbrown

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Wes Kocher 2018-10-10 23:49:35 +00:00
parent aa709aeeff
commit 14f83f337d

View File

@ -27,12 +27,18 @@ class WebPlatformTestsRunnerSetup(MozbuildObject):
default_log_type = "mach"
def kwargs_common(self, kwargs):
from mozrunner.devices.android_device import verify_android_device
build_path = os.path.join(self.topobjdir, 'build')
here = os.path.split(__file__)[0]
tests_src_path = os.path.join(here, "tests")
if build_path not in sys.path:
sys.path.append(build_path)
if kwargs["product"] == "fennec":
verify_android_device(self, install=True, verbose=False, xre=True)
if kwargs["certutil_binary"] is None:
kwargs["certutil_binary"] = os.path.join(os.environ.get('MOZ_HOST_BIN'), "certutil")
if kwargs["config"] is None:
kwargs["config"] = os.path.join(self.topobjdir, '_tests', 'web-platform', 'wptrunner.local.ini')