Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1357)

Unified Diff: build/android/pylib/device/device_utils.py

Issue 732473003: A more robust way to set/query CPU properties on devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/pylib/perf/perf_control.py » ('j') | build/android/pylib/perf/perf_control.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | build/android/pylib/perf/perf_control.py » ('j') | build/android/pylib/perf/perf_control.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698