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

Unified Diff: build/android/enable_asserts.py

Issue 2760923002: [build/android] Fix device.RunShellCommand usages (Closed)
Patch Set: Created 3 years, 9 months 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
Index: build/android/enable_asserts.py
diff --git a/build/android/enable_asserts.py b/build/android/enable_asserts.py
index b303edad9a578818fe4cac80305228629a0005c5..c4b07239604ab5670cc46847cb5a157304907efe 100755
--- a/build/android/enable_asserts.py
+++ b/build/android/enable_asserts.py
@@ -42,8 +42,8 @@ def main():
def set_java_asserts_and_restart(device):
if device.SetJavaAsserts(args.set_asserts):
- device.RunShellCommand('stop')
- device.RunShellCommand('start')
+ device.RunShellCommand(['stop'], check_return=True)
+ device.RunShellCommand(['start'], check_return=True)
devices.pMap(set_java_asserts_and_restart)
return 0
« no previous file with comments | « no previous file | build/android/gyp/push_libraries.py » ('j') | build/android/pylib/local/device/local_device_gtest_run.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698