create a tar file for logs 13/39013/1
authorgrakiss <grakiss.wanglei@huawei.com>
Thu, 10 Aug 2017 02:03:13 +0000 (10:03 +0800)
committergrakiss <grakiss.wanglei@huawei.com>
Thu, 10 Aug 2017 02:05:27 +0000 (10:05 +0800)
JIRA: DOVETAIL-479

User may want to upload all logs along with the results,
so others may check the running logs to make sure what' s going on during the test.

Change-Id: Ice906264bbdf091d3353d6d2e146653aeb057f5f
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
dovetail/report.py
dovetail/run.py

index fc707a3..b2bf227 100644 (file)
@@ -160,7 +160,6 @@ class Report(object):
                 report_txt += sub_report[key]
 
         cls.logger.info(report_txt)
-        cls.save_logs()
         # cls.save(report_txt)
         return report_txt
 
index 7515023..01111dd 100755 (executable)
@@ -276,6 +276,7 @@ def main(*args, **kwargs):
         duration = run_test(testsuite_yaml, testarea, logger)
         if dt_cfg.dovetail_config['report_dest'] == "file":
             Report.generate(testsuite_yaml, testarea, duration)
+        Report.save_logs()
     else:
         logger.error('Invalid input commands, testsuite {} testarea {}'
                      .format(kwargs['testsuite'], testarea))