summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-04-10 23:15:39 -0400
committerMatthewLi <matthew.lijun@huawei.com>2017-04-10 23:24:53 -0400
commita7b6447955d16ef73189d31ed8fb7442f11091be (patch)
tree7c1a76d5c9269acc4e0ce00bc8fed5f5b164385f /dovetail/run.py
parent002d7cb256e4f0753f4b738d7f3d2a7872704314 (diff)
refstack: add manually method to let user can set its tempest.conf and defcore.txt
JIRA: DOVETAIL-394 for refstack, userguide is listed in https://gerrit.opnfv.org/gerrit/#/c/33049/ in CI, use the automate way to generate tempest.conf to let refstack run against SUT, i.e., defcore.tc001.yml will provide a way to let user can let refstack run against SUT manually, i.e. defcore.tc002.yml since the tempest.conf autometely generated may not satisfied with SUT, users can adjust its tempest.conf to let the defcore testcases pass. Change-Id: I5ed212c9c6d864d352d1c497ea039cc553461158 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index aae35e12..98a00085 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -172,11 +172,18 @@ def get_result_path():
dt_cfg.dovetail_config['result_dir'] = result_path
+def get_userconfig_path():
+ dovetail_home = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ userconfig_path = os.path.join(dovetail_home, 'userconfig')
+ dt_cfg.dovetail_config['userconfig_dir'] = userconfig_path
+
+
def main(*args, **kwargs):
"""Dovetail compliance test entry!"""
build_tag = "daily-master-%s" % str(uuid.uuid4())
dt_cfg.dovetail_config['build_tag'] = build_tag
get_result_path()
+ get_userconfig_path()
clean_results_dir()
if kwargs['debug']:
os.environ['DEBUG'] = 'true'