summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzshi <zshi@redhat.com>2016-10-21 19:40:05 +0800
committerzshi <zshi@redhat.com>2016-10-21 19:40:05 +0800
commit5d5fe66ba391fdd94be466db09323ee0d7a8bebf (patch)
treef749dcee809832b2edcf0aa7cfc8efbc99f01987
parentbb5d6a119196dcfeabf141cca23b6495fc5e386e (diff)
dovetail tool: rename report_file_path variable
the value assigned to report_file_path is a file name, not a path. Change-Id: I338ae2bb5e836d26c711bfa9144f16d06c08deb7 Signed-off-by: zshi <zshi@redhat.com>
-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):