lf_check.py : read out the script return code.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2022-03-29 17:45:17 -06:00
committed by shivam
parent cabed1cea7
commit f0c7d21503

View File

@@ -998,6 +998,11 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
self.logger.info("Current Working Directory {}".format(os.getcwd()))
# Since using "wait" above the return code will be set.
try:
return_code = summary.returncode
self.logger.info("return code {return_code} for test: {command}".format(return_code=return_code,command=command_to_run))
except BaseException as err:
self.logger.info("issue reading return code err:{err}".format(err=err))
self.logger.info(summary_output)
stdout_log.write(summary_output)