summaryrefslogtreecommitdiffstats
path: root/storperf/db/job_db.py
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-05-12 10:05:25 -0600
committerMark Beierl <mark.beierl@emc.com>2016-05-12 10:35:49 -0600
commitd0f40c056a9283f30df45da5d35b72ce79b5d9a0 (patch)
treea0ece870394afa7eb1f936b2cf3a8c4583853d4f /storperf/db/job_db.py
parent4e7e1d2ffea89950ae516a19997765daccf92664 (diff)
Results DB Reporting
Add the ability to push results to the test result db. If the environment variable TEST_DB_URL is defined, results will be pushed there. If not, no push is attempted. Change-Id: Ib833530d7379c5f37f0d2904a83d31a4ee559ae6 JIRA: STORPERF-13 Signed-off-by: Mark Beierl <mark.beierl@emc.com>
Diffstat (limited to 'storperf/db/job_db.py')
-rw-r--r--storperf/db/job_db.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/storperf/db/job_db.py b/storperf/db/job_db.py
index 412c6bc..3d66be8 100644
--- a/storperf/db/job_db.py
+++ b/storperf/db/job_db.py
@@ -201,9 +201,12 @@ class JobDB(object):
return workload_executions
- def record_workload_params(self, job_id, params):
+ def record_workload_params(self, params):
"""
"""
+ if (self.job_id is None):
+ self.create_job_id()
+
with db_mutex:
db = sqlite3.connect(JobDB.db_name)
@@ -215,7 +218,7 @@ class JobDB(object):
param,
value)
values (?, ?, ?)""",
- (job_id,
+ (self.job_id,
param,
value,))
db.commit()