Risk: Low
Visibility: Should eliminate test failures caused by problems inserting results
into the tko database.

This wraps all of the insert_test calls used for the continuous parsing in a
try-except handler that logs a warning to stderr that the insert failed, but
continues running anyway. In the case of intermittent database issues, this
will prevent long-runnings tests from failing part-way through just because of
a problem saving the result.

A full parse of the results is still performed when the job completes, so the
results will eventually make it into the database, but given the choice between
the continuous parsing producing temporary incomplete results and an aborted
job, it seems better to just continue with the job.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1536 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed