New issue
Advanced search Search tips

Issue 699994 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-9


Sign in to add a comment

Handle screenshot.py exceptions

Project Member Reported by achuith@chromium.org, Mar 9 2017

Issue description

If there's nothing on the screen, screenshot.py will throw an exception like:
File "/usr/local/autotest/bin/screenshot.py", line 21, in <module>
    image = crtcScreenshot(args.crtc)
  File "/usr/local/autotest/cros/graphics/drm.py", line 687, in crtcScreenshot
    "Unable to take screenshot. There may not be anything on the screen.")
RuntimeError: Unable to take screenshot. There may not be anything on the screen.

This can occur during a test failure, and this failure can suppress other errors, so we should eat it.
 

Comment 1 by ihf@chromium.org, Mar 9 2017

Yes, the screenshot is taken to get more information about the original failure. The failure of taking the screenshot (which is permissible in mentioned situations) hides the original failure and hence subverts the original purpose.
Components: Test>Telemetry
Components: -Tests>Telemetry

Sign in to add a comment