summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2016-11-03 07:40:15 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-03 07:40:15 +0000
commitf3a4e6f6d05c970f79c1d33dba5ed77eb2f64a5a (patch)
tree1256d623379ff1a9b345be755c6b2436c035fe77
parente6ca6809ca85946a1e5c7d07687c2fdc98977abb (diff)
parent5d5fe66ba391fdd94be466db09323ee0d7a8bebf (diff)
Merge "dovetail tool: rename report_file_path variable"
-rw-r--r--dovetail/report.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index c937011f..9ea90231 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -64,14 +64,14 @@ class Report:
# save to disk as default
@classmethod
def save(cls, report):
- report_file_path = dovetail_config['report_file']
+ report_file_name = dovetail_config['report_file']
try:
with open(os.path.join(dovetail_config['result_dir'],
- report_file_path), 'w') as report_file:
+ report_file_name), 'w') as report_file:
report_file.write(report)
- logger.info('save report to %s' % report_file_path)
+ logger.info('save report to %s' % report_file_name)
except Exception:
- logger.error('Failed to save: %s' % report_file_path)
+ logger.error('Failed to save: %s' % report_file_name)
@classmethod
def get_result(cls, testcase):