mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-20 20:14:57 +00:00
lf_check.py : created exceptions if the metadata file is not present
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
c07c211e52
commit
9830d08a49
@@ -994,6 +994,7 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
break
|
||||
stdout_log_fd.close()
|
||||
if meta_data_path != "":
|
||||
try:
|
||||
meta_data_fd = open(meta_data_path, 'w+')
|
||||
meta_data_fd.write(
|
||||
'$ Generated by Candela Technologies LANforge network testing tool\n')
|
||||
@@ -1040,6 +1041,11 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
"lanforge_server_version_full {lanforge_server_version_full}\n".format(
|
||||
lanforge_server_version_full=self.lanforge_server_version_full[0]))
|
||||
meta_data_fd.close()
|
||||
except ValueError as err:
|
||||
logg.critical("unable to write meta {meta_data_path} : {msg}}".format(meta_data_path=meta_data_path,msg=err))
|
||||
except BaseException as err:
|
||||
logg.critical("BaseException unable to write meta {meta_data_path} : {msg}".format(meta_data_path=meta_data_path,msg=err))
|
||||
|
||||
# Timeout needs to be reported and not overwriten
|
||||
if self.test_result == "TIMEOUT":
|
||||
self.logger.info(
|
||||
|
||||
Reference in New Issue
Block a user