summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorYang Yu <Gabriel.yuyang@huawei.com>2017-08-01 15:01:49 +0800
committerYang Yu <Gabriel.yuyang@huawei.com>2017-08-01 15:03:28 +0800
commitfd66a0466e931e28ebd1f0925e9c9a0c28912a02 (patch)
tree0269439b0826c62a05cde70a093605f466392d0c /testsuites
parent0b47f013a0af6549cee590762bbd979729de0ead (diff)
Add support for arbitary DB reporting
JIRA: BOTTLENECK-158 Support for arbitary DB reporting. TestperfDB and Dovetail DB are within currently consideration. Change-Id: I4373e5f295d26155e2b4fda59044cc4e922c3557 Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/run_testsuite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/run_testsuite.py b/testsuites/run_testsuite.py
index 1e8d8953..bc255c46 100644
--- a/testsuites/run_testsuite.py
+++ b/testsuites/run_testsuite.py
@@ -61,7 +61,9 @@ def report(testcase, start_date, stop_date, criteria, details_doc):
}
results['details'] = {"test_results": details_doc}
- target = "http://testresults.opnfv.org/test/api/v1/results"
+ target = os.environ.get(
+ 'REPORTING_DB',
+ 'http://testresults.opnfv.org/test/api/v1/results')
timeout = 5
try: