mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1066077 - [mozdevice] Raise an exception when there is no device attached. r=wlachance
This commit is contained in:
parent
f797c407f5
commit
29fe8bc8e8
@ -637,7 +637,7 @@ class DeviceManagerADB(DeviceManager):
|
||||
raise DMError("bad status for device %s: %s" % (self._deviceSerial, deviceStatus))
|
||||
|
||||
# Check to see if we can connect to device and run a simple command
|
||||
if self._checkCmd(["shell", "echo"]) is None:
|
||||
if not self._checkCmd(["shell", "echo"]) == 0:
|
||||
raise DMError("unable to connect to device")
|
||||
|
||||
def _checkForRoot(self):
|
||||
|
Loading…
Reference in New Issue
Block a user