Index: build/android/pylib/instrumentation/test_runner.py |
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py |
index 92d80f97f145362d66272433be5a3ccbfd0b0932..fe444e91eff736124525fbbf34ea53f6d69cd2c6 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -299,8 +299,8 @@ class TestRunner(base_test_runner.BaseTestRunner): |
if 'SmallTest' in annotations: |
return 1 * 60 |
- logging.warn(("Test size not found in annotations for test '{0}', using " + |
- "1 minute for timeout.").format(test)) |
+ logging.warn(("Test size not found in annotations for test '%s', using " + |
+ "1 minute for timeout.") % test) |
return 1 * 60 |
def _RunTest(self, test, timeout): |
@@ -443,7 +443,7 @@ class TestRunner(base_test_runner.BaseTestRunner): |
timeout = (self._GetIndividualTestTimeoutSecs(test) * |
self._GetIndividualTestTimeoutScale(test) * |
self.tool.GetTimeoutScale()) |
- if (self.device.GetProp('ro.build.version.sdk') |
+ if (self.device.build_version_sdk |
< constants.ANDROID_SDK_VERSION_CODES.JELLY_BEAN): |
timeout *= 10 |