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

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

Issue 12921004: [Android] Enable running uiautomator tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: 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 86842251116e473bf4d302643b9dde4c8d71073f..10ef87c70872f75a501cc842f0cca7de42f3801e 100644
--- a/build/android/pylib/host_driven/run_python_tests.py
+++ b/build/android/pylib/host_driven/run_python_tests.py
@@ -12,7 +12,7 @@ import types
from pylib import android_commands
from pylib import constants
from pylib.base.test_result import TestResults
-from pylib.instrumentation import apk_info
+from pylib.instrumentation import test_package
from pylib.instrumentation import test_runner
import python_test_base
@@ -84,9 +84,10 @@ def DispatchPythonTests(options):
# Copy files to each device before running any tests.
for device_id in attached_devices:
logging.debug('Pushing files to device %s', device_id)
- apks = [apk_info.ApkInfo(options.test_apk_path, options.test_apk_jar_path)]
+ test_pkg = test_package.TestPackage(options.test_apk_path,
+ options.test_apk_jar_path)
test_files_copier = test_runner.TestRunner(options, device_id, 0, False,
- apks, [])
+ test_pkg, [])
test_files_copier.CopyTestFilesOnce()
# Actually run the tests.
« no previous file with comments | « build/android/pylib/host_driven/python_test_base.py ('k') | build/android/pylib/instrumentation/apk_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698