1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-05 18:30:50 +01:00

utils/android: Use subprocess.DEVNULL where appropriate

This commit is contained in:
Douglas Raillard 2024-06-10 16:48:38 +01:00 committed by Marc Bonnici
parent b8292b1f2b
commit a28c6d7ce0

View File

@ -562,7 +562,7 @@ def adb_disconnect(device, adb_server=None, adb_port=None):
adb_cmd = get_adb_command(None, 'disconnect', adb_server, adb_port)
command = "{} {}".format(adb_cmd, device)
logger.debug(command)
retval = subprocess.call(command, stdout=open(os.devnull, 'wb'), shell=True)
retval = subprocess.call(command, stdout=subprocess.DEVNULL, shell=True)
if retval:
raise TargetTransientError('"{}" returned {}'.format(command, retval))