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 5711291a20af39403301e75662638768e44b3e08..04e167230f23ce6fdaee0183cf487418eb755513 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -166,7 +166,8 @@ class TestRunner(base_test_runner.BaseTestRunner): |
self.flags.AddFlags(['--disable-fre', '--enable-test-intents']) |
if self.options.device_flags: |
with open(self.options.device_flags) as device_flags_file: |
- self.flags.AddFlags(list(device_flags_file)) |
+ self.flags.AddFlags([flag.replace('\n','') \ |
+ for flag in device_flags_file if flag != '\n']) |
def TearDown(self): |
"""Cleans up the test harness and saves outstanding data from test run.""" |