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 29225a5c184ea418bde984c39ca68cde9b268f7d..96aff5cad7eb97de9139f75d4a4dec9cd6c85a70 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -106,8 +106,10 @@ class TestRunner(base_test_runner.BaseTestRunner): |
if test_data: |
# Make sure SD card is ready. |
self.adb.WaitForSdCardReady(20) |
- for data in test_data: |
- self.CopyTestData([data], self.adb.GetExternalStorage()) |
+ for p in test_data: |
+ self.adb.PushIfNeeded( |
+ os.path.join(constants.DIR_SOURCE_ROOT, p), |
+ os.path.join(self.adb.GetExternalStorage(), p)) |
# TODO(frankf): Specify test data in this file as opposed to passing |
# as command-line. |