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

Unified Diff: build/android/run_instrumentation_tests.py

Issue 12256021: [Android] Split out the instrumentation test runner, sharder, and dispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some host_driven imports Created 7 years, 10 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/test_sharder.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_instrumentation_tests.py
diff --git a/build/android/run_instrumentation_tests.py b/build/android/run_instrumentation_tests.py
index 43925ae78a304150678b7d310f663162dc430e0f..12a15105075621a0fd28372a15b48d76f57043bd 100755
--- a/build/android/run_instrumentation_tests.py
+++ b/build/android/run_instrumentation_tests.py
@@ -14,10 +14,10 @@ import time
from pylib import buildbot_report
from pylib import constants
from pylib import ports
-from pylib.base.test_result import TestResults
+from pylib.base import test_result
from pylib.host_driven import run_python_tests
from pylib.instrumentation import apk_info
-from pylib.instrumentation import run_java_tests
+from pylib.instrumentation import dispatch
from pylib.utils import run_tests_helper
from pylib.utils import test_options_parser
@@ -43,17 +43,18 @@ def DispatchInstrumentationTests(options):
raise Exception('Failed to reset test server port.')
start_date = int(time.time() * 1000)
- java_results = TestResults()
- python_results = TestResults()
+ java_results = test_result.TestResults()
+ python_results = test_result.TestResults()
if options.run_java_tests:
- java_results = run_java_tests.DispatchJavaTests(
+ java_results = dispatch.Dispatch(
options,
[apk_info.ApkInfo(options.test_apk_path, options.test_apk_jar_path)])
if options.run_python_tests:
python_results = run_python_tests.DispatchPythonTests(options)
- all_results = TestResults.FromTestResults([java_results, python_results])
+ all_results = test_result.TestResults.FromTestResults([java_results,
+ python_results])
all_results.LogFull(
test_type='Instrumentation',
« no previous file with comments | « build/android/pylib/instrumentation/test_sharder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698