Index: build/android/pylib/device/adb_wrapper.py |
diff --git a/build/android/pylib/device/adb_wrapper.py b/build/android/pylib/device/adb_wrapper.py |
index 97f387ada22f9b79dfdea6e00d1bd4021883a6a9..e7a84185d8f43b81a3c641ed0669622e4c4d6025 100644 |
--- a/build/android/pylib/device/adb_wrapper.py |
+++ b/build/android/pylib/device/adb_wrapper.py |
@@ -152,14 +152,14 @@ class AdbWrapper(object): |
self._DeviceAdbCmd(['pull', remote, local], timeout, retries) |
_VerifyLocalFileExists(local) |
- def Shell(self, command, expect_rc=None, timeout=_DEFAULT_TIMEOUT, |
+ def Shell(self, command, expect_rc=0, timeout=_DEFAULT_TIMEOUT, |
retries=_DEFAULT_RETRIES): |
"""Runs a shell command on the device. |
Args: |
command: The shell command to run. |
- expect_rc: (optional) If set checks that the command's return code matches |
- this value. |
+ expect_rc: (optional) Check that the command's return code matches this |
+ value. Default is 0. If set to None the test is skipped. |
timeout: (optional) Timeout per try in seconds. |
retries: (optional) Number of retries to attempt. |