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 740a8c37364e935de9f03dbb250bfafd717f343f..42178907cf9361762f499615fb00b93dfccb7ddf 100644 |
--- a/build/android/pylib/local/device/local_device_gtest_run.py |
+++ b/build/android/pylib/local/device/local_device_gtest_run.py |
@@ -345,9 +345,7 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun): |
if self._test_instance.app_files: |
self._delegate.PullAppFiles(device, self._test_instance.app_files, |
self._test_instance.app_file_dir) |
- # Clearing data when using incremental install wipes out cached optimized |
- # dex files (and shouldn't be necessary by tests anyways). |
- if not self._env.incremental_install: |
+ if not self._test_instance.skip_clear_data: |
self._delegate.Clear(device) |
# Parse the output. |