Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: build/android/pylib/local/device/local_device_gtest_run.py

Issue 2044523003: Revert of 👔 Reland of Move side-loaded test data /sdcard -> /sdcard/gtestdata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 90f133bc3129815fe15653561614f88472820ec0..e7af1a27051056a0b15687c6fde545467319873a 100644
--- a/build/android/pylib/local/device/local_device_gtest_run.py
+++ b/build/android/pylib/local/device/local_device_gtest_run.py
@@ -241,16 +241,12 @@
def push_test_data():
# Push data dependencies.
- device_root = posixpath.join(dev.GetExternalStoragePath(),
- 'chromium_tests_root')
+ external_storage = dev.GetExternalStoragePath()
data_deps = self._test_instance.GetDataDependencies()
host_device_tuples = [
- (h, d if d is not None else device_root)
+ (h, d if d is not None else external_storage)
for h, d in data_deps]
- dev.PushChangedFiles(host_device_tuples, delete_device_stale=True)
- if not host_device_tuples:
- dev.RunShellCommand(['rm', '-rf', device_root], check_return=True)
- dev.RunShellCommand(['mkdir', '-p', device_root], check_return=True)
+ dev.PushChangedFiles(host_device_tuples)
def init_tool_and_start_servers():
tool = self.GetTool(dev)
« no previous file with comments | « base/test/test_support_android.cc ('k') | build/android/pylib/local/device/local_device_instrumentation_test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698