Added more fields to support all the field in the test view.
Signed-off-by: Darren Kuo <darrenkuo@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4624 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index 9b9f456..72c897f 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -2,6 +2,7 @@
import common
from autotest_lib.client.common_lib import global_config
+from autotest_lib.tko import utils
class MySQLTooManyRows(Exception):
@@ -327,11 +328,7 @@
else:
self.update_machine_information(job, commit=commit)
- afe_job_id = None
- pattern = re.compile('^([0-9]+)-.+/.+$')
- match = pattern.match(tag)
- if match:
- afe_job_id = match.group(1)
+ afe_job_id = utils.get_afe_job_id(tag)
data = {'tag':tag,
'label': job.label,