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

Unified Diff: build/android/pylib/instrumentation/test_runner.py

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/instrumentation/test_runner.py
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py
index 3bac503b0659cd52b091897d6ef70df5b71e27a4..60e00f33efca8b74a18ee9647f61004e56f1f99c 100644
--- a/build/android/pylib/instrumentation/test_runner.py
+++ b/build/android/pylib/instrumentation/test_runner.py
@@ -369,16 +369,11 @@ class TestRunner(base_test_runner.BaseTestRunner):
Returns:
The raw output of am instrument as a list of lines.
"""
- # Build the 'am instrument' command
- instrumentation_path = (
- '%s/%s' % (self.test_pkg.GetPackageName(), self.options.test_runner))
-
- cmd = ['am', 'instrument', '-r']
- for k, v in self._GetInstrumentationArgs().iteritems():
- cmd.extend(['-e', k, v])
- cmd.extend(['-e', 'class', test])
- cmd.extend(['-w', instrumentation_path])
- return self.device.RunShellCommand(cmd, timeout=timeout, retries=0)
+ extras = self._GetInstrumentationArgs()
+ extras['class'] = test
+ return self.device.StartInstrumentation(
+ '%s/%s' % (self.test_pkg.GetPackageName(), self.options.test_runner),
+ raw=True, extras=extras, timeout=timeout, retries=0)
@staticmethod
def _ParseAmInstrumentRawOutput(raw_output):
@@ -506,7 +501,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
self.tool.GetTimeoutScale())
if (self.device.GetProp('ro.build.version.sdk')
< constants.ANDROID_SDK_VERSION_CODES.JELLY_BEAN):
- timeout *= 4
+ timeout *= 10
start_ms = 0
duration_ms = 0
« no previous file with comments | « build/android/pylib/instrumentation/test_result.py ('k') | build/android/pylib/instrumentation/test_runner_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698