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 2d574de1fd2017149062cb63c9c4eb12e6023bad..7eabef731371b1f6dc1f36fc12f688473eea9b41 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 |
@@ -264,6 +264,8 @@ class LocalDeviceInstrumentationTestRun( |
base_test_result.ResultType.SKIP) |
for r in results): |
logging.info('detected failure in %s. raw output:', test_display_name) |
+ if self._test_instance.screenshot_dir: |
+ device.TakeScreenshot(self._test_instance.screenshot_dir) |
jbudorick
2016/05/18 17:52:21
TakeScreenshot returns the host path of the screen
BigBossZhiling
2016/05/18 19:22:22
Done.
|
for l in output: |
logging.info(' %s', l) |
if (not self._env.skip_clear_data |