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

Unified Diff: build/android/pylib/local/device/local_device_instrumentation_test_run.py

Issue 1981043004: Added the --screenshot option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added directory Created 4 years, 7 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/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

Powered by Google App Engine
This is Rietveld 408576698