Chromium Code Reviews| Index: build/android/pylib/local/device/local_device_instrumentation_test_run.py |
| diff --git a/build/android/pylib/local/device/local_device_instrumentation_test_run.py b/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
| index fd7cfbbad34d80352cac2630712f3eeeac0e139f..9714a97e644299c08d0c6f85ebbeaa4ff8c21237 100644 |
| --- a/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
| +++ b/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
| @@ -268,7 +268,13 @@ class LocalDeviceInstrumentationTestRun( |
| logging.info(' %s', l) |
| if (not self._env.skip_clear_data |
| and self._test_instance.package_info): |
| - device.ClearApplicationState(self._test_instance.package_info.package) |
| + permissions = ( |
| + self._test_instance.apk_under_test |
|
jbudorick
2016/05/10 23:23:29
I think this is backwards.
rnephew (Reviews Here)
2016/05/10 23:27:33
Done.
|
| + if self._test_instance.apk_under_test.GetPermissions() |
| + else None) |
| + device.ClearApplicationState(self._test_instance.package_info.package, |
| + permissions=permissions) |
| + |
| else: |
| logging.debug('raw output from %s:', test_display_name) |
| for l in output: |