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

utils/android: Use LC_ALL for adb commands

Ensures that adb commands are executed with english locale since we
sometimes match on the output.
This commit is contained in:
Douglas Raillard 2023-06-26 10:24:26 +01:00 committed by Marc Bonnici
parent 6b09571859
commit 35e7288149

View File

@ -699,7 +699,7 @@ def get_adb_command(device, command, adb_server=None):
if adb_server != None:
device_string = ' -H {}'.format(adb_server)
device_string += ' -s {}'.format(device) if device else ''
return "adb{} {}".format(device_string, command)
return "LC_ALL=C adb{} {}".format(device_string, command)
def adb_command(device, command, timeout=None, adb_server=None):