mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_check.py : look for error in stdout
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -1040,13 +1040,27 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url)
|
|||||||
self.text_result = "Failure"
|
self.text_result = "Failure"
|
||||||
background = self.background_red
|
background = self.background_red
|
||||||
else:
|
else:
|
||||||
self.test_result = "Success"
|
self.text_result = "Success"
|
||||||
background = self.background_green
|
background = self.background_green
|
||||||
else:
|
else:
|
||||||
self.logger.info("File: {} is empty: {}".format(stderr_log_txt, str(stderr_log_size)))
|
self.logger.info("File: {} is empty: {}".format(stderr_log_txt, str(stderr_log_size)))
|
||||||
self.test_result = "Success"
|
self.test_result = "Success"
|
||||||
background = self.background_green
|
background = self.background_green
|
||||||
|
|
||||||
|
# Check to see if there is an error in stdout_log
|
||||||
|
if stdout_log_size > 0:
|
||||||
|
text = open(stdout_log_txt).read()
|
||||||
|
if 'error' in text.lower():
|
||||||
|
self.test_result = "Failure"
|
||||||
|
background = self.background_red
|
||||||
|
else:
|
||||||
|
self.test_result = "Success"
|
||||||
|
background = self.background_green
|
||||||
|
else:
|
||||||
|
# if stdout empty that is a failure also
|
||||||
|
self.test_resut = "Failure"
|
||||||
|
background = self.background_red
|
||||||
|
|
||||||
# if there was a
|
# if there was a
|
||||||
if self.test_result == "TIMEOUT":
|
if self.test_result == "TIMEOUT":
|
||||||
self.logger.info("TIMEOUT FAILURE, Check LANforge Radios")
|
self.logger.info("TIMEOUT FAILURE, Check LANforge Radios")
|
||||||
|
|||||||
Reference in New Issue
Block a user