Commit 73a54c2a authored by frankf@chromium.org's avatar frankf@chromium.org

[Android] Fix uiautomator command line flag after r242933.

BUG=331798
TBR=navabi@chromium.org

Review URL: https://codereview.chromium.org/122223003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243127 0039d316-1c4b-4281-b951-d872f2087c98
parent 80d5f446
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"""Class for running uiautomator tests on a single device.""" """Class for running uiautomator tests on a single device."""
from pylib import constants from pylib import constants
from pylib import flag_changer
from pylib.instrumentation import test_options as instr_test_options from pylib.instrumentation import test_options as instr_test_options
from pylib.instrumentation import test_runner as instr_test_runner from pylib.instrumentation import test_runner as instr_test_runner
...@@ -40,6 +41,10 @@ class TestRunner(instr_test_runner.TestRunner): ...@@ -40,6 +41,10 @@ class TestRunner(instr_test_runner.TestRunner):
super(TestRunner, self).__init__(instrumentation_options, device, super(TestRunner, self).__init__(instrumentation_options, device,
shard_index, test_pkg) shard_index, test_pkg)
cmdline_file = constants.PACKAGE_INFO[test_options.package].cmdline_file
self.flags = None
if cmdline_file:
self.flags = flag_changer.FlagChanger(self.adb, cmdline_file)
self._package = constants.PACKAGE_INFO[test_options.package].package self._package = constants.PACKAGE_INFO[test_options.package].package
self._activity = constants.PACKAGE_INFO[test_options.package].activity self._activity = constants.PACKAGE_INFO[test_options.package].activity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment