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 60000bf71be0e2d871b8430e6cee4bd9ee5c5d76..0a30da6d94351ab849cea7562e1f4ca8077ee044 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -104,8 +104,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. |