1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 10:10:46 +00:00

utils/android: Remove uncessary parameter from method

This commit is contained in:
Marc Bonnici 2018-07-11 17:31:11 +01:00 committed by setrofim
parent 473f37f1bc
commit 27fc75f74c

View File

@ -452,7 +452,7 @@ def adb_list_devices(adb_server=None):
return devices return devices
def get_adb_command(device, command, timeout=None,adb_server=None): def get_adb_command(device, command, adb_server=None):
_check_env() _check_env()
device_string = "" device_string = ""
if adb_server != None: if adb_server != None:
@ -460,8 +460,8 @@ def get_adb_command(device, command, timeout=None,adb_server=None):
device_string += ' -s {}'.format(device) if device else '' device_string += ' -s {}'.format(device) if device else ''
return "adb{} {}".format(device_string, command) return "adb{} {}".format(device_string, command)
def adb_command(device, command, timeout=None,adb_server=None): def adb_command(device, command, timeout=None, adb_server=None):
full_command = get_adb_command(device, command, timeout, adb_server) full_command = get_adb_command(device, command, adb_server)
logger.debug(full_command) logger.debug(full_command)
output, _ = check_output(full_command, timeout, shell=True) output, _ = check_output(full_command, timeout, shell=True)
return output return output