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

Unified Diff: build/android/pylib/host_driven/run_python_tests.py

Issue 21008004: Changes argument passing to use options objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes imports, removes intermediate variables 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/host_driven/python_test_base.py ('k') | build/android/pylib/instrumentation/setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/host_driven/run_python_tests.py
diff --git a/build/android/pylib/host_driven/run_python_tests.py b/build/android/pylib/host_driven/run_python_tests.py
index 3ce8857da0d998319ef5c18febc41804b21bd00d..09f2aa10c45eaca6d8afe9d50d6608f30c8e93fa 100644
--- a/build/android/pylib/host_driven/run_python_tests.py
+++ b/build/android/pylib/host_driven/run_python_tests.py
@@ -11,6 +11,7 @@ import types
from pylib import android_commands
from pylib.base import base_test_result
+from pylib.instrumentation import test_options
from pylib.instrumentation import test_package
from pylib.instrumentation import test_runner
from pylib.utils import report_results
@@ -87,11 +88,24 @@ def DispatchPythonTests(options):
logging.debug('Pushing files to device %s', device_id)
test_pkg = test_package.TestPackage(options.test_apk_path,
options.test_apk_jar_path)
- test_files_copier = test_runner.TestRunner(
- options.build_type, options.test_data, options.save_perf_json,
- options.screenshot_failures, options.tool, options.wait_for_debugger,
- options.disable_assertions, options.push_deps,
- options.cleanup_test_files, device_id, 0, test_pkg, [])
+ instrumentation_options = test_options.InstrumentationOptions(
+ options.build_type,
+ options.tool,
+ options.cleanup_test_files,
+ options.push_deps,
+ options.annotations,
+ options.exclude_annotations,
+ options.test_filter,
+ options.test_data,
+ options.save_perf_json,
+ options.screenshot_failures,
+ options.disable_assertions,
+ options.wait_for_debugger,
+ options.test_apk,
+ options.test_apk_path,
+ options.test_apk_jar_path)
+ test_files_copier = test_runner.TestRunner(instrumentation_options,
+ device_id, 0, test_pkg, [])
test_files_copier.InstallTestPackage()
if options.push_deps:
logging.info('Pushing data deps to device.')
« no previous file with comments | « build/android/pylib/host_driven/python_test_base.py ('k') | build/android/pylib/instrumentation/setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698