diff --git a/devlib/utils/android.py b/devlib/utils/android.py index fc502b9..018d3d2 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -576,7 +576,7 @@ def adb_shell(device, command, timeout=None, check_exit_code=False, '-----\nSTDERR:\n-----\n{}\n-----' raise TargetTransientError(message.format(raw_output, error)) - return output + error + return '\n'.join(x for x in (output, error) if x) def adb_background_shell(conn, command,