summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/base_test_runner.py
diff options
context:
space:
mode:
authorwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 01:26:26 +0000
committerwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 01:26:26 +0000
commite383a5623447ee16f28d5240a6013bb685adfe7d (patch)
tree5d80b49a39624330607e997f83994ae44754d1f9 /build/android/pylib/base_test_runner.py
parent9a9f4a1ead7af556c88e04ed19b35fa0a3566112 (diff)
downloadchromium_src-e383a5623447ee16f28d5240a6013bb685adfe7d.zip
chromium_src-e383a5623447ee16f28d5240a6013bb685adfe7d.tar.gz
chromium_src-e383a5623447ee16f28d5240a6013bb685adfe7d.tar.bz2
Change Android build configurations (step 2).
Step 1 is https://chromiumcodereview.appspot.com/10827273/ which changed Debug build to build size-optimized code with DCHECK. Step 2: update developer scripts and buildbot scripts to support to new configurations. BUG=none Review URL: https://chromiumcodereview.appspot.com/10836323 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/pylib/base_test_runner.py')
-rw-r--r--build/android/pylib/base_test_runner.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/android/pylib/base_test_runner.py b/build/android/pylib/base_test_runner.py
index 523ed66..efed534 100644
--- a/build/android/pylib/base_test_runner.py
+++ b/build/android/pylib/base_test_runner.py
@@ -31,11 +31,12 @@ class BaseTestRunner(object):
the Run() method will set up tests, run them and tear them down.
"""
- def __init__(self, device, tool, shard_index):
+ def __init__(self, device, tool, shard_index, build_type):
"""
Args:
device: Tests will run on the device of this ID.
shard_index: Index number of the shard on which the test suite will run.
+ build_type: 'Release' or 'Debug'.
"""
self.device = device
self.adb = android_commands.AndroidCommands(device=device)
@@ -60,6 +61,7 @@ class BaseTestRunner(object):
# starting it in TestServerThread.
self.test_server_spawner_port = 0
self.test_server_port = 0
+ self.build_type = build_type
def _PushTestServerPortInfoToDevice(self):
"""Pushes the latest port information to device."""
@@ -165,7 +167,7 @@ class BaseTestRunner(object):
if self._forwarder:
self._forwarder.Close()
self._forwarder = Forwarder(
- self.adb, port_pairs, self.tool, '127.0.0.1')
+ self.adb, port_pairs, self.tool, '127.0.0.1', self.build_type)
def StartForwarderForHttpServer(self):
"""Starts a forwarder for the HTTP server.
@@ -232,4 +234,4 @@ class BaseTestRunner(object):
self._spawner_forwarder = Forwarder(
self.adb,
[(self.test_server_spawner_port, self.test_server_spawner_port)],
- self.tool, '127.0.0.1')
+ self.tool, '127.0.0.1', self.build_type)