mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1119583 - Use Droid instead of devicemanager for xpcshell mach; r=ahal
This commit is contained in:
parent
c4eff52c0f
commit
804a0db75c
@ -213,16 +213,16 @@ class XPCShellRunner(MozbuildObject):
|
||||
class AndroidXPCShellRunner(MozbuildObject):
|
||||
"""Get specified DeviceManager"""
|
||||
def get_devicemanager(self, devicemanager, ip, port, remote_test_root):
|
||||
from mozdevice import devicemanagerADB, devicemanagerSUT
|
||||
import mozdevice
|
||||
dm = None
|
||||
if devicemanager == "adb":
|
||||
if ip:
|
||||
dm = devicemanagerADB.DeviceManagerADB(ip, port, packageName=None, deviceRoot=remote_test_root)
|
||||
dm = mozdevice.DroidADB(ip, port, packageName=None, deviceRoot=remote_test_root)
|
||||
else:
|
||||
dm = devicemanagerADB.DeviceManagerADB(packageName=None, deviceRoot=remote_test_root)
|
||||
dm = mozdevice.DroidADB(packageName=None, deviceRoot=remote_test_root)
|
||||
else:
|
||||
if ip:
|
||||
dm = devicemanagerSUT.DeviceManagerSUT(ip, port, deviceRoot=remote_test_root)
|
||||
dm = mozdevice.DroidSUT(ip, port, deviceRoot=remote_test_root)
|
||||
else:
|
||||
raise Exception("You must provide a device IP to connect to via the --ip option")
|
||||
return dm
|
||||
|
Loading…
Reference in New Issue
Block a user