Log a message with a traceback immediately when an exception is caught that fails a test or job.

Right now, when tests or jobs fail, we execute various actions before providing any indication of the failure.  Such actions include post-test cleanup, post-iteration sysinfo collection, post-job crashinfo collection, etc.  The exception traceback can be separated from the immediately preceding line by hundreds of lines of unrelated logging output.  Of course the traceback shows you exactly where the exception originated, but this separation in the logs makes debugging a royal pain.

With this change, whenever such a test- or job-ending exception is caught, on the client or the server, we *immediately* log a message with a traceback.  We then carry on with the usual activities and eventually log the traceback again when we're recording failure.  But the first log should make debugging easier and make things more obvious for new and experienced users alike.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3852 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed