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

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

Issue 10836323: Change Android build configurations (step 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unnecessary changes Created 8 years, 4 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/forwarder.py ('k') | build/android/pylib/single_test_runner.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 ddf38fe4dfa007792dedb50ddbbe4fbd82db88c5..4b313e7a30343b1367f7fe2622292242dbf60a43 100644
--- a/build/android/pylib/run_java_tests.py
+++ b/build/android/pylib/run_java_tests.py
@@ -89,6 +89,7 @@ class TestRunner(BaseTestRunner):
Args:
options: An options object with the following required attributes:
+ - build_type: 'Release' or 'Debug'.
- install_apk: Re-installs the apk if opted.
- save_perf_json: Whether or not to save the JSON file from UI perf
tests.
@@ -108,12 +109,14 @@ class TestRunner(BaseTestRunner):
Raises:
FatalTestException: if coverage metadata is not available.
"""
- BaseTestRunner.__init__(self, device, options.tool, shard_index)
+ BaseTestRunner.__init__(
+ 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)]
+ self.build_type = options.build_type
self.install_apk = options.install_apk
self.save_perf_json = options.save_perf_json
self.screenshot_failures = options.screenshot_failures
@@ -268,8 +271,8 @@ class TestRunner(BaseTestRunner):
if self.ports_to_forward:
for port in self.ports_to_forward:
- self.forwarders.append(
- Forwarder(self.adb, [(port, port)], self.tool, '127.0.0.1'))
+ self.forwarders.append(Forwarder(
+ self.adb, [(port, port)], self.tool, '127.0.0.1', self.build_type))
self.CopyTestFilesOnce()
self.flags.AddFlags(['--enable-test-intents'])
« no previous file with comments | « build/android/pylib/forwarder.py ('k') | build/android/pylib/single_test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698