Bug 1507502 - Check for correct installed package when running mach wpt --package; r=kwierso

This commit is contained in:
Geoff Brown 2018-11-19 08:28:15 -07:00
Родитель 69d396b470
Коммит ca263cc2ba
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -34,15 +34,15 @@ class WebPlatformTestsRunnerSetup(MozbuildObject):
sys.path.append(build_path)
if kwargs["product"] == "fennec":
# Note that this import may fail in non-fennec trees
from mozrunner.devices.android_device import verify_android_device, grant_runtime_permissions
verify_android_device(self, install=True, verbose=False, xre=True)
# package_name may be non-fennec in the future
package_name = kwargs["package_name"]
if not package_name:
package_name = self.substs["ANDROID_PACKAGE_NAME"]
# Note that this import may fail in non-fennec trees
from mozrunner.devices.android_device import verify_android_device, grant_runtime_permissions
verify_android_device(self, install=True, verbose=False, xre=True, app=package_name)
grant_runtime_permissions(self, package_name, kwargs["device_serial"])
if kwargs["certutil_binary"] is None:
kwargs["certutil_binary"] = os.path.join(os.environ.get('MOZ_HOST_BIN'), "certutil")