mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
utils/android: Fix echoing of commands.
The fix in commit 964fde2 caused issues with certain command structures, for example running in the background. To prevent this run the original command as a subshell.
This commit is contained in:
parent
964fde2fef
commit
c944d34593
@ -444,7 +444,7 @@ def adb_shell(device, command, timeout=None, check_exit_code=False,
|
||||
# command failed (https://code.google.com/p/android/issues/detail?id=3254).
|
||||
# Homogenise this behaviour by running the command then echoing the exit
|
||||
# code of the executed command itself.
|
||||
command += r' ; echo "\n$?"'
|
||||
command = r'({}); echo "\n$?"'.format(command)
|
||||
|
||||
parts = ['adb']
|
||||
if adb_server is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user