summaryrefslogtreecommitdiffstats
path: root/storperf/db/job_db.py
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-02-01 14:27:19 -0500
committermbeierl <mark.beierl@dell.com>2017-02-01 14:41:49 -0500
commitb64833b08e839691cc0c95aa27b49e7eee83dbe6 (patch)
tree63e1d8f8a1f51a8cb0f89d725f08bf1df8072db5 /storperf/db/job_db.py
parentae4a3d47a67dfddd3a222a1f06c3212956567d24 (diff)
Add URL for results report
Records the URL returned from testresults db. Changes the URL ref from localhost to external and reports in daily job. Change-Id: I0068ea963671fb183779ac20592ba6933647eea0 JIRA: STORPERF-104 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'storperf/db/job_db.py')
-rw-r--r--storperf/db/job_db.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/storperf/db/job_db.py b/storperf/db/job_db.py
index 3d66be8..05160ec 100644
--- a/storperf/db/job_db.py
+++ b/storperf/db/job_db.py
@@ -7,11 +7,11 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-from sqlite3 import OperationalError
-from threading import Lock
import calendar
import logging
+from sqlite3 import OperationalError
import sqlite3
+from threading import Lock
import time
import uuid
@@ -54,6 +54,14 @@ class JobDB(object):
except OperationalError:
self.logger.debug("Job params table exists")
+ try:
+ cursor.execute('''CREATE TABLE job_summary
+ (job_id text,
+ summary text)''')
+ self.logger.debug("Created job table")
+ except OperationalError:
+ self.logger.debug("Job table exists")
+
cursor.execute('SELECT * FROM jobs')
cursor.execute('SELECT * FROM job_params')
db.commit()