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 |