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

Unified Diff: build/android/pylib/uiautomator/dispatch.py

Issue 18514008: Relands test_runner.py, updates buildbot scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moves test_suite option back into gtest only Created 7 years, 5 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/instrumentation/dispatch.py ('k') | build/android/pylib/utils/test_options_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/uiautomator/dispatch.py
diff --git a/build/android/pylib/uiautomator/dispatch.py b/build/android/pylib/uiautomator/dispatch.py
index 0f68ce4965246c63302a24ab100311fb5a3cc47b..82abd847c3cc0e71584195639d7f99fcc73e7fe5 100644
--- a/build/android/pylib/uiautomator/dispatch.py
+++ b/build/android/pylib/uiautomator/dispatch.py
@@ -10,6 +10,7 @@ import os
from pylib import android_commands
from pylib.base import base_test_result
from pylib.base import shard
+from pylib.utils import report_results
import test_package
import test_runner
@@ -25,7 +26,7 @@ def Dispatch(options):
options: Command line options.
Returns:
- A TestRunResults object holding the results of the Java tests.
+ Test results in a base_test_result.TestRunResults object.
Raises:
Exception: when there are no attached devices.
@@ -42,13 +43,14 @@ def Dispatch(options):
if not attached_devices:
raise Exception('There are no devices online.')
- if options.device:
- assert options.device in attached_devices
- attached_devices = [options.device]
+ if options.test_device:
+ assert options.test_device in attached_devices
+ attached_devices = [options.test_device]
def TestRunnerFactory(device, shard_index):
return test_runner.TestRunner(
options, device, shard_index, test_pkg, [])
- return shard.ShardAndRunTests(TestRunnerFactory, attached_devices, tests,
- options.build_type)
+ return shard.ShardAndRunTests(TestRunnerFactory, attached_devices,
+ tests, options.build_type,
+ num_retries=options.num_retries)
« no previous file with comments | « build/android/pylib/instrumentation/dispatch.py ('k') | build/android/pylib/utils/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698