summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo wang <grakiss.wanglei@huawei.com>2017-09-28 08:34:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-28 08:34:50 +0000
commit0cc2fdefa9e6e959e7c69beede736738f339f636 (patch)
tree8b4a77df96b6cb4984627e5b5ba91b67b99b6490
parent465f738554c1c401707036a055577b35f7c06dca (diff)
parentb57330821bd12844185bf315ffc7d6a6637ba79d (diff)
Merge "Don't generate tar file when run without pushing results to DB"
-rwxr-xr-xdovetail/run.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index c7496475..7de4c814 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -298,7 +298,8 @@ 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()
+ if dt_cfg.dovetail_config['report_dest'].startswith("http"):
+ Report.save_logs()
else:
logger.error('Invalid input commands, testsuite {} testarea {}'
.format(kwargs['testsuite'], testarea))