put dovetail test result back in log and not generte report file 69/33469/2
authorMatthewLi <matthew.lijun@huawei.com>
Tue, 18 Apr 2017 10:51:25 +0000 (06:51 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Tue, 18 Apr 2017 10:57:39 +0000 (06:57 -0400)
Change-Id: I2da5e7844f5ce034d4c0cfaa4592e6cd47002049
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
dovetail/report.py
dovetail/run.py

index dc53d30..3dd636c 100644 (file)
@@ -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
index 5a902d7..c3c97d6 100755 (executable)
@@ -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)