| 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 b4bbb621ce131225ac7754e79057b99d2d84808a..795e8171ae1d301ab4305244827f6cbd051d3e93 100644
|
| --- a/build/android/pylib/instrumentation/test_runner.py
|
| +++ b/build/android/pylib/instrumentation/test_runner.py
|
| @@ -229,11 +229,12 @@ 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:
|
| apk_under_test = self.test_pkg.GetApkUnderTest()
|
| permissions = apk_under_test.GetPermissions() if apk_under_test else None
|
| self.device.ClearApplicationState(
|
| self.package_info.package, permissions=permissions)
|
| + self.device.ClearApplicationState(self.package_info.package)
|
|
|
| def TearDownPerfMonitoring(self, test):
|
| """Cleans up performance monitoring if the specified test required it.
|
|
|