mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1119838 - Raise exception early when there is no adb command available; r=bclary
This commit is contained in:
parent
12de551623
commit
e2d2912934
@ -146,6 +146,14 @@ class ADBCommand(object):
|
||||
self._logger.debug("%s: %s" % (self.__class__.__name__,
|
||||
self.__dict__))
|
||||
|
||||
# catch early a missing or non executable adb command
|
||||
try:
|
||||
subprocess.Popen([adb, 'help'],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE).communicate()
|
||||
except Exception, exc:
|
||||
raise ADBError('%s: %s is not executable.' % (exc, adb))
|
||||
|
||||
def _get_logger(self, logger_name):
|
||||
logger = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user