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

Unified Diff: trunk/src/build/android/pylib/instrumentation/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/instrumentation/dispatch.py
===================================================================
--- trunk/src/build/android/pylib/instrumentation/dispatch.py (revision 210250)
+++ trunk/src/build/android/pylib/instrumentation/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,9 +42,9 @@
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]
if len(attached_devices) > 1 and options.wait_for_debugger:
logging.warning('Debugger can not be sharded, using first available device')
« no previous file with comments | « trunk/src/build/android/pylib/host_driven/run_python_tests.py ('k') | trunk/src/build/android/pylib/uiautomator/dispatch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698