diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-03-22 05:25:54 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-04-01 00:02:50 -0400 |
commit | fc04c41594a8f30e2e79b1e452b87844ee077f30 (patch) | |
tree | 57d81d88bc288505a8b0eae722209972553ea546 /dovetail/testcase.py | |
parent | aa8654d4f3f727f99016aaa540c8d5aa3f79edcb (diff) |
refstack result parse
JIRA: DOVETAIL-375
1, together with other testsuite from functest, such as tempest etc.
this should merge after https://gerrit.opnfv.org/gerrit/#/c/31313/
2, delete some unnecessary definition
3, bugfix of docker cp inside container, see
https://build.opnfv.org/ci/view/dovetail/job/dovetail-compass-baremetal-debug-master/361/console
4, disable tempest testcaes since changed to refstack_defcore
Change-Id: I67503e348af4a3f697f1b4106bfe81c05add8aa0
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/testcase.py')
-rw-r--r-- | dovetail/testcase.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py index 7f218c47..21d655ef 100644 --- a/dovetail/testcase.py +++ b/dovetail/testcase.py @@ -115,6 +115,17 @@ class Testcase(object): self.name()) return pre_condition + def pre_copy_src_path(self, test_type): + try: + pre_copy_src_file = \ + self.testcase['validate']['pre_copy']['src_file'] + result_dir = dt_cfg.dovetail_config[test_type]['result']['dir'] + except KeyError as e: + self.logger.error('src file Key error %s', e) + return None + src_path = os.path.join(result_dir, pre_copy_src_file) + return src_path + def pre_copy_dest_path(self): try: pre_copy_dest_path = \ |