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 39b0b0c8efd68feed9f6bf1259ee940977d4cbaa..4f8cdcf304a1ff234415a93a9d279c9ecffdf649 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -99,15 +99,14 @@ class TestRunner(base_test_runner.BaseTestRunner): |
str(self.device)) |
return |
- host_device_file_tuples = [] |
test_data = _GetDataFilesForTestSuite(self.test_pkg.GetApkName()) |
if test_data: |
# Make sure SD card is ready. |
self.device.WaitUntilFullyBooted(timeout=20) |
- host_device_file_tuples += [ |
- (os.path.join(constants.DIR_SOURCE_ROOT, p), |
- os.path.join(self.device.GetExternalStoragePath(), p)) |
- for p in test_data] |
+ for p in test_data: |
+ self.device.PushChangedFiles( |
+ os.path.join(constants.DIR_SOURCE_ROOT, p), |
+ os.path.join(self.device.GetExternalStoragePath(), p)) |
# TODO(frankf): Specify test data in this file as opposed to passing |
# as command-line. |
@@ -118,14 +117,12 @@ class TestRunner(base_test_runner.BaseTestRunner): |
host_test_files_path = os.path.join(constants.DIR_SOURCE_ROOT, |
host_src) |
if os.path.exists(host_test_files_path): |
- host_device_file_tuples += [( |
+ self.device.PushChangedFiles( |
host_test_files_path, |
'%s/%s/%s' % ( |
self.device.GetExternalStoragePath(), |
TestRunner._DEVICE_DATA_DIR, |
- dst_layer))] |
- if host_device_file_tuples: |
- self.device.PushChangedFiles(host_device_file_tuples) |
+ dst_layer)) |
self.tool.CopyFiles() |
TestRunner._DEVICE_HAS_TEST_FILES[str(self.device)] = True |