Bug 1231665 - Specify deviceSerial for android emulator adb commands; r=jmaher

This commit is contained in:
Geoff Brown 2015-12-14 18:55:57 -07:00
parent 3066495bdd
commit 6c13865174

View File

@ -289,7 +289,8 @@ class AndroidEmulator(object):
adb_path = _find_sdk_exe(substs, 'adb', False)
if not adb_path:
adb_path = 'adb'
self.dm = DeviceManagerADB(autoconnect=False, adbPath=adb_path, retryLimit=1)
self.dm = DeviceManagerADB(autoconnect=False, adbPath=adb_path, retryLimit=1,
deviceSerial='emulator-5554')
self.dm.default_timeout = 10
_log_debug("Emulator created with type %s" % self.avd_type)