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..9da3f791cca302e4734fddca052966b2918e1855 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 |
@@ -263,6 +263,9 @@ class LocalDeviceInstrumentationTestRun( |
if any(r.GetType() not in (base_test_result.ResultType.PASS, |
base_test_result.ResultType.SKIP) |
for r in results): |
+ if self._test_instance.screenshot_dir: |
+ saved_dir = device.TakeScreenshot(self._test_instance.screenshot_dir) |
jbudorick
2016/05/18 19:31:17
Thought about this a bit more. Let's instead speci
BigBossZhiling
2016/05/18 22:30:18
Done.
|
+ logging.info('saved screenshot at %s', saved_dir) |
jbudorick
2016/05/18 19:31:17
nit: this should be
logging.info('Saved screens
BigBossZhiling
2016/05/18 22:30:18
Done.
|
logging.info('detected failure in %s. raw output:', test_display_name) |
for l in output: |
logging.info(' %s', l) |