Bug 1218993 - [mozdevice] do not repeat wait-for-device in adb commands, r=gbrown.

This commit is contained in:
Bob Clary 2015-10-28 23:21:47 -07:00
Родитель 4b7528e795
Коммит 66e5eee002
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -1853,7 +1853,13 @@ class ADBDevice(ADBCommand):
to determine if the device has completed booting. to determine if the device has completed booting.
""" """
self.command_output(["reboot"], timeout=timeout) self.command_output(["reboot"], timeout=timeout)
self.command_output(["wait-for-device"], timeout=timeout) # command_output automatically inserts a 'wait-for-device'
# argument to adb. Issuing an empty command is the same as adb
# -s <device> wait-for-device. We don't send an explicit
# 'wait-for-device' since that would add duplicate
# 'wait-for-device' arguments which is an error in newer
# versions of adb.
self.command_output([], timeout=timeout)
return self.is_device_ready(timeout=timeout) return self.is_device_ready(timeout=timeout)
@abstractmethod @abstractmethod

Просмотреть файл

@ -78,7 +78,13 @@ class ADBAndroid(ADBDevice):
:raises: * ADBTimeoutError :raises: * ADBTimeoutError
* ADBError * ADBError
""" """
self.command_output(["wait-for-device"], timeout=timeout) # command_output automatically inserts a 'wait-for-device'
# argument to adb. Issuing an empty command is the same as adb
# -s <device> wait-for-device. We don't send an explicit
# 'wait-for-device' since that would add duplicate
# 'wait-for-device' arguments which is an error in newer
# versions of adb.
self.command_output([], timeout=timeout)
pm_error_string = "Error: Could not access the Package Manager" pm_error_string = "Error: Could not access the Package Manager"
pm_list_commands = ["packages", "permission-groups", "permissions", pm_list_commands = ["packages", "permission-groups", "permissions",
"instrumentation", "features", "libraries"] "instrumentation", "features", "libraries"]