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

Unified Diff: build/android/pylib/run_java_tests.py

Issue 11741025: Seperate apk_info and jar_info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added TOO Created 7 years, 12 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/python_test_base.py ('k') | build/android/pylib/run_python_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/run_java_tests.py
diff --git a/build/android/pylib/run_java_tests.py b/build/android/pylib/run_java_tests.py
index 07b45e0ea9dfa857bafeb563699dcabfd4c14806..5425a44467a895134f0f538bbd23d5dd92f59cb6 100644
--- a/build/android/pylib/run_java_tests.py
+++ b/build/android/pylib/run_java_tests.py
@@ -13,7 +13,6 @@ import sys
import time
import android_commands
-import apk_info
from base_test_runner import BaseTestRunner
from base_test_sharder import BaseTestSharder, SetTestsContainer
import cmd_helper
@@ -24,6 +23,8 @@ from json_perf_parser import GetAverageRunInfoFromJSONString
from perf_tests_helper import PrintPerfResult
import sharded_tests_queue
from test_result import SingleTestResult, TestResults
+from utils import apk_and_jar_info
+from utils import jar_info
import valgrind_tools
_PERF_TEST_ANNOTATION = 'PerfTest'
@@ -113,8 +114,8 @@ class TestRunner(BaseTestRunner):
self, device, options.tool, shard_index, options.build_type)
if not apks:
- apks = [apk_info.ApkInfo(options.test_apk_path,
- options.test_apk_jar_path)]
+ apks = [apk_and_jar_info.ApkAndJarInfo(options.test_apk_path,
+ options.test_apk_jar_path)]
self.build_type = options.build_type
self.install_apk = options.install_apk
@@ -540,7 +541,7 @@ def DispatchJavaTests(options, apks):
for test_method in test_apk.GetTestMethods():
annotations = frozenset(test_apk.GetTestAnnotations(test_method))
if (annotations.isdisjoint(test_size_annotations) and
- not apk_info.ApkInfo.IsPythonDrivenTest(test_method)):
+ not jar_info.JarInfo.IsPythonDrivenTest(test_method)):
tests_missing_annotations.append(test_method)
return sorted(tests_missing_annotations)
@@ -556,7 +557,7 @@ def DispatchJavaTests(options, apks):
available_tests += tests_missing_annotations
else:
available_tests = [m for m in test_apk.GetTestMethods()
- if not apk_info.ApkInfo.IsPythonDrivenTest(m)]
+ if not jar_info.JarInfo.IsPythonDrivenTest(m)]
coverage = os.environ.get('EMMA_INSTRUMENT') == 'true'
tests = []
« no previous file with comments | « build/android/pylib/python_test_base.py ('k') | build/android/pylib/run_python_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698