summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/local/device/local_device_gtest_run.py
diff options
context:
space:
mode:
authoragrieve <agrieve@chromium.org>2016-02-08 15:25:14 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-08 23:27:05 +0000
commitcd243a271a150e4e68c988e0bf96865f6ff79a06 (patch)
tree196bbc7c5e944cd797e4c369df78898b8c63b375 /build/android/pylib/local/device/local_device_gtest_run.py
parent407d1de019d5baadbd5eda34cc8f852da1ec41fc (diff)
downloadchromium_src-cd243a271a150e4e68c988e0bf96865f6ff79a06.zip
chromium_src-cd243a271a150e4e68c988e0bf96865f6ff79a06.tar.gz
chromium_src-cd243a271a150e4e68c988e0bf96865f6ff79a06.tar.bz2
Adds --skip-clear-data flag to android's test_runner.py
Meant to be used to speed up local development. Mostly applicable when running instrumentation tests against _incremental .apks. BUG=540857 Review URL: https://codereview.chromium.org/1570043004 Cr-Commit-Position: refs/heads/master@{#374211}
Diffstat (limited to 'build/android/pylib/local/device/local_device_gtest_run.py')
-rw-r--r--build/android/pylib/local/device/local_device_gtest_run.py4
1 files changed, 1 insertions, 3 deletions
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 740a8c3..4217890 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.