mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-30 17:50:46 +00:00
utils/android: Use subprocess.DEVNULL where appropriate
This commit is contained in:
parent
b8292b1f2b
commit
a28c6d7ce0
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user