autotest: let after-test hooks see exceptions.

The "after iteration hooks" are the first code to run after run_once(),
in both the success and failure cases. This change gives the hooks a
chance to check for a pending exception and log extra information if
needed.

BUG=None
TEST=Verify server/client-side test exceptions are visible in hooks.

Change-Id: I2d8248d329130d515a8e0d8dfd8c6093a253eed3
Previous-Reviewed-on: https://chromium-review.googlesource.com/278025
(cherry picked from commit 287ea4e39b3468c56bee816890dfee209fa3220f)
Reviewed-on: https://chromium-review.googlesource.com/285620
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Tested-by: Christopher Grant <cjgrant@chromium.org>
2 files changed