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

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

Issue 18732002: Revert 210035 "Creates a new test running script test_runner.py" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
Index: trunk/src/build/android/pylib/uiautomator/dispatch.py
===================================================================
--- trunk/src/build/android/pylib/uiautomator/dispatch.py (revision 210250)
+++ trunk/src/build/android/pylib/uiautomator/dispatch.py (working copy)
@@ -10,7 +10,6 @@
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
@@ -26,7 +25,7 @@
options: Command line options.
Returns:
- Test results in a base_test_result.TestRunResults object.
+ A TestRunResults object holding the results of the Java tests.
Raises:
Exception: when there are no attached devices.
@@ -43,14 +42,13 @@
if not attached_devices:
raise Exception('There are no devices online.')
- if options.test_device:
- assert options.test_device in attached_devices
- attached_devices = [options.test_device]
+ if options.device:
+ assert options.device in attached_devices
+ attached_devices = [options.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,
- num_retries=options.num_retries)
+ return shard.ShardAndRunTests(TestRunnerFactory, attached_devices, tests,
+ options.build_type)
« no previous file with comments | « trunk/src/build/android/pylib/instrumentation/dispatch.py ('k') | trunk/src/build/android/pylib/utils/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698