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

Unified Diff: build/android/pylib/instrumentation/test_runner.py

Issue 1570043004: Adds --skip-clear-data flag to android's test_runner.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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/instrumentation/test_runner.py
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py
index aab0c12448105e250682debc66fd9dee17d26860..89e3897941c831b6d58ad7130bd238bd0439cca2 100644
--- a/build/android/pylib/instrumentation/test_runner.py
+++ b/build/android/pylib/instrumentation/test_runner.py
@@ -228,7 +228,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
self.coverage_device_file, self.coverage_host_file)
self.device.RunShellCommand(
'rm -f %s' % self.coverage_device_file)
- elif self.package_info:
+ elif self.package_info and not self.options.skip_clear_data:
self.device.ClearApplicationState(self.package_info.package)
def TearDownPerfMonitoring(self, test):

Powered by Google App Engine
This is Rietveld 408576698