Make test parser insert the test version into the tko db.
From: David McMahon <djmm@google.com>
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@842 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index f83e789..cf5c46c 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -169,6 +169,8 @@
self.insert('iteration_result',
data,
commit=commit)
+ data = {'test_idx':test_idx, 'attribute':'version', 'value':test.version}
+ self.insert('test_attributes', data, commit=commit)
def read_machine_map(self):