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

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

Issue 351603002: [Android] Unit tests for DeviceUtils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device/decorators.py
diff --git a/build/android/pylib/device/decorators.py b/build/android/pylib/device/decorators.py
index 7bce245ff0b575b18257af83cf0df8bdf0755edc..9362f95528d10318d43cf5d7dbf0e414169a05de 100644
--- a/build/android/pylib/device/decorators.py
+++ b/build/android/pylib/device/decorators.py
@@ -50,11 +50,14 @@ def _TimeoutRetryWrapper(f, timeout_func, retries_func, pass_values=False):
try:
return timeout_retry.Run(impl, timeout, retries)
except old_errors.WaitForResponseTimedOutError as e:
- raise device_errors.CommandTimeoutError(str(e))
+ raise device_errors.CommandTimeoutError(str(e)), None, (
+ sys.exc_info()[2])
except old_errors.DeviceUnresponsiveError as e:
- raise device_errors.DeviceUnreachableError(str(e))
+ raise device_errors.DeviceUnreachableError(str(e)), None, (
+ sys.exc_info()[2])
except reraiser_thread.TimeoutError as e:
- raise device_errors.CommandTimeoutError(str(e))
+ raise device_errors.CommandTimeoutError(str(e)), None, (
+ sys.exc_info()[2])
return TimeoutRetryWrapper
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698