mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1119583 - Use Droid instead of devicemanager for xpcshell mach; r=ahal
This commit is contained in:
parent
aa7a06d2bb
commit
506fb1c3fd
@ -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