Chromium Code Reviews| Index: build/android/pylib/base/base_setup.py |
| diff --git a/build/android/pylib/base/base_setup.py b/build/android/pylib/base/base_setup.py |
| index 0b0daf13e5c9e0317ebe430dcab22862ce37bca2..12a57c247b95a314f2ae691b4d6134a24317e7a3 100644 |
| --- a/build/android/pylib/base/base_setup.py |
| +++ b/build/android/pylib/base/base_setup.py |
| @@ -59,7 +59,11 @@ def GenerateDepsDirUsingIsolate(suite_name, isolate_file_path, |
| def PushDataDeps(device, device_dir, test_options): |
| valgrind_tools.PushFilesForTool(test_options.tool, device) |
| if os.path.exists(constants.ISOLATE_DEPS_DIR): |
| - device.PushChangedFiles([ |
| - (os.path.join(constants.ISOLATE_DEPS_DIR, p), |
| - '%s/%s' % (device_dir, p)) |
| - for p in os.listdir(constants.ISOLATE_DEPS_DIR)]) |
| + if test_options.delete_stale_data: |
| + device.PushChangedFiles([(constants.ISOLATE_DEPS_DIR, device_dir)], |
| + delete_device_stale=True) |
| + else: |
| + device.PushChangedFiles([ |
| + (os.path.join(constants.ISOLATE_DEPS_DIR, p), |
| + '%s/%s' % (device_dir, p)) |
| + for p in os.listdir(constants.ISOLATE_DEPS_DIR)]) |
|
perezju
2015/06/10 09:24:22
why not replace the whole thing with just:
device
Menglin
2015/06/10 21:22:15
Done.
|