diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-04-18 06:51:25 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-04-18 06:57:39 -0400 |
commit | 9a1f3fc0cc0e6ca9114dff909f5a2ba58a41bf31 (patch) | |
tree | b46dcec02c7ec5c48695f4fd276085c7a86b42ce | |
parent | 2ffa3fc85027ef9ac291c6a22bd41bfa2c66ab4c (diff) |
put dovetail test result back in log and not generte report file
Change-Id: I2da5e7844f5ce034d4c0cfaa4592e6cd47002049
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rw-r--r-- | dovetail/report.py | 2 | ||||
-rwxr-xr-x | dovetail/run.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dovetail/report.py b/dovetail/report.py index dc53d307..3dd636c7 100644 --- a/dovetail/report.py +++ b/dovetail/report.py @@ -154,7 +154,7 @@ class Report(object): report_txt += sub_report[key] cls.logger.info(report_txt) - cls.save(report_txt) + # cls.save(report_txt) return report_txt # save to disk as default diff --git a/dovetail/run.py b/dovetail/run.py index 5a902d7f..c3c97d68 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -95,8 +95,8 @@ def check_tc_result(testcase, logger): if validate_type.lower() == 'functest': logger.info("Results have been stored with file %s.", os.path.join(result_dir, functest_result)) - # result = Report.get_result(testcase) - # Report.check_result(testcase, result) + result = Report.get_result(testcase) + Report.check_result(testcase, result) def validate_input(input_dict, check_dict, logger): @@ -229,9 +229,9 @@ def main(*args, **kwargs): if testsuite_validation and testarea_validation: testsuite_yaml = load_testsuite(kwargs['testsuite']) load_testcase() - run_test(testsuite_yaml, testarea, logger) - # if dt_cfg.dovetail_config['report_dest'] == "file": - # Report.generate(testsuite_yaml, testarea, duration) + duration = run_test(testsuite_yaml, testarea, logger) + if dt_cfg.dovetail_config['report_dest'] == "file": + Report.generate(testsuite_yaml, testarea, duration) else: logger.error('invalid input commands, testsuite %s testarea %s', kwargs['testsuite'], testarea) |