Chromium Code Reviews| Index: build/android/pylib/device/device_utils.py |
| diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py |
| index 334b74c41dc02b0a0015d93bce4d0b66dc5fe540..1602ec538a681d3848531b5bf5dfea167ca1eb9a 100644 |
| --- a/build/android/pylib/device/device_utils.py |
| +++ b/build/android/pylib/device/device_utils.py |
| @@ -371,7 +371,7 @@ class DeviceUtils(object): |
| @decorators.WithTimeoutAndRetriesFromInstance() |
| def RunShellCommand(self, cmd, check_return=False, cwd=None, env=None, |
| - as_root=False, single_line=False, |
| + as_root=False, single_line=False, raw_output=False, |
|
jbudorick
2014/11/18 02:29:37
I'm wary of adding options simply for convenience
|
| timeout=None, retries=None): |
| """Run an ADB shell command. |
| @@ -447,6 +447,9 @@ class DeviceUtils(object): |
| else: |
| output = e.output |
| + if raw_output: |
| + return output |
| + |
| output = output.splitlines() |
| if single_line: |
| if not output: |