cros_vm: Handle RetryException arg rename.
RetryException's exc_retry has been renamed to exception.
BUG=chromium:655280
TEST=manual
Change-Id: Ie5446901099622d9054ef9486148f9598d121a73
Reviewed-on: https://chromium-review.googlesource.com/531742
Commit-Ready: Achuith Bhandarkar <achuith@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Ryan Cui <rcui@google.com>
diff --git a/scripts/cros_vm.py b/scripts/cros_vm.py
index 8a5c5ba..503f46d 100644
--- a/scripts/cros_vm.py
+++ b/scripts/cros_vm.py
@@ -217,7 +217,7 @@
def _WaitForProc(exe, numpids):
try:
retry_util.RetryException(
- exc_retry=_TooFewPidsException,
+ exception=_TooFewPidsException,
max_retry=20,
functor=lambda: _GetRunningPids(exe, numpids),
sleep=2)
@@ -241,7 +241,7 @@
try:
result = retry_util.RetryException(
- exc_retry=remote_access.SSHConnectionError,
+ exception=remote_access.SSHConnectionError,
max_retry=10,
functor=lambda: self.RemoteCommand(cmd=['echo']),
sleep=5)