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

Unified Diff: build/android/pylib/instrumentation/test_runner.py

Issue 23726004: Add test_server_setup.py and add support for additional flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed permissions Created 7 years, 3 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/test_server.py ('k') | chrome/android/host_driven_tests/DummyTest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/test_runner.py
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py
index 9599b25cd5b70d746742267f165d530b007e1527..c598e28d346c79d0450ff3344fc64e842c1842f8 100644
--- a/build/android/pylib/instrumentation/test_runner.py
+++ b/build/android/pylib/instrumentation/test_runner.py
@@ -52,7 +52,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
_DEVICE_HAS_TEST_FILES = {}
def __init__(self, test_options, device, shard_index, test_pkg,
- ports_to_forward):
+ ports_to_forward, additional_flags=None):
"""Create a new TestRunner.
Args:
@@ -62,6 +62,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
test_pkg: A TestPackage object.
ports_to_forward: A list of port numbers for which to set up forwarders.
Can be optionally requested by a test case.
+ additional_flags: A list of additional flags to add to the command line.
"""
super(TestRunner, self).__init__(device, test_options.tool,
test_options.push_deps,
@@ -80,6 +81,8 @@ class TestRunner(base_test_runner.BaseTestRunner):
self.flags = flag_changer.FlagChanger(self.adb, cmdline_file[0])
else:
self.flags = flag_changer.FlagChanger(self.adb)
+ if additional_flags:
+ self.flags.AddFlags(additional_flags)
#override
def InstallTestPackage(self):
« no previous file with comments | « build/android/pylib/host_driven/test_server.py ('k') | chrome/android/host_driven_tests/DummyTest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698