Index: build/android/pylib/local/device/local_device_gtest_run.py |
diff --git a/build/android/pylib/local/device/local_device_gtest_run.py b/build/android/pylib/local/device/local_device_gtest_run.py |
index a723cfe6726fdb48ec414402d70bcfa0f49687a3..2a61a9a8b7d21a00ad623090def8c39e641aec19 100644 |
--- a/build/android/pylib/local/device/local_device_gtest_run.py |
+++ b/build/android/pylib/local/device/local_device_gtest_run.py |
@@ -240,12 +240,16 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun): |
def push_test_data(): |
# Push data dependencies. |
- external_storage = dev.GetExternalStoragePath() |
+ device_root = posixpath.join(dev.GetExternalStoragePath(), |
+ 'chromium_tests_root') |
jbudorick
2016/05/18 14:23:38
I still don't really like having this hard-coded b
agrieve
2016/05/19 02:11:53
I don't think manifest will work since tests can s
jbudorick
2016/05/24 19:13:52
I disagree, particularly with the regexp extractio
|
data_deps = self._test_instance.GetDataDependencies() |
host_device_tuples = [ |
- (h, d if d is not None else external_storage) |
+ (h, d if d is not None else device_root) |
for h, d in data_deps] |
- dev.PushChangedFiles(host_device_tuples) |
+ dev.PushChangedFiles(host_device_tuples, delete_device_stale=True) |
+ if not host_device_tuples: |
+ dev.RunShellCommand(['rm', '-rf', device_root]) |
jbudorick
2016/05/18 14:23:38
check_return=True here and below
agrieve
2016/05/19 02:11:53
Done.
|
+ dev.RunShellCommand(['mkdir', '-p', device_root]) |
def init_tool_and_start_servers(): |
tool = self.GetTool(dev) |