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

Unified Diff: build/android/pylib/test_package_apk.py

Issue 11232037: Retry tests on other bots if the device is unresponsive/offline (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: small improvement Created 8 years, 2 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/pylib/test_package_apk.py
diff --git a/build/android/pylib/test_package_apk.py b/build/android/pylib/test_package_apk.py
index 42b9ade68b33a506b3dc80fec29945b8f1706d63..598f5131cc0016e8a58c43a64a9bf18a2bf66e90 100644
--- a/build/android/pylib/test_package_apk.py
+++ b/build/android/pylib/test_package_apk.py
@@ -11,6 +11,7 @@ import time
import android_commands
import constants
+from android_commands import errors
from test_package import TestPackage
from pylib import pexpect
@@ -65,7 +66,8 @@ class TestPackageApk(TestPackage):
break
time.sleep(i)
else:
- raise Exception('Unable to find fifo on device %s ' % self._GetFifo())
+ raise errors.DeviceUnresponsiveError(
+ 'Unable to find fifo on device %s ' % self._GetFifo())
args = shlex.split(self.adb.Adb()._target_arg)
args += ['shell', 'cat', self._GetFifo()]
return pexpect.spawn('adb', args, timeout=timeout, logfile=logfile)

Powered by Google App Engine
This is Rietveld 408576698