Stop reporting all login failures as timeouts
The exception handling in cros_ui_test.login accidentally converts
its own TestFails into one claiming a timeout. Tweak the handler to
exclude AutotestErrors and change its message to preserve information
from the nested exception.
Tested by manually setting the timeout to 1ms, setting a fake login
error and a fake bizarre fail. The TestFails are preserved properly
and the timeout exception gets additional detail with the screenshot
name.
BUG=chromium-os:37461
TEST=None
Change-Id: I6a21c52649d61a93ca50b72f0f253f66ee20d507
Reviewed-on: https://gerrit.chromium.org/gerrit/41846
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
Commit-Queue: Chris Wolfe <cwolfe@chromium.org>
Tested-by: Chris Wolfe <cwolfe@chromium.org>
1 file changed