Strip the optional fields (e.g. timestamps) out of the reason fields
when parsing test results. Also, add a test_finished_time field for
storing the timestamp in the database.

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1248 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index 409d086..15173da 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -233,7 +233,8 @@
 		data = {'job_idx':job.index, 'test':test.testname,
 			'subdir':test.subdir, 'kernel_idx':kver,
 			'status':self.status_idx[test.status],
-			'reason':test.reason, 'machine_idx':job.machine_idx }
+			'reason':test.reason, 'machine_idx':job.machine_idx,
+			'finished_time':test.finished_time}
 		self.insert('tests', data, commit=commit)
 		test_idx = self.get_last_autonumber_value()
 		data = { 'test_idx':test_idx }