From 41b09a3458d4a938f84fa2eb9c2080eab2a02252 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Thu, 1 Jul 2021 14:30:26 -0600 Subject: [PATCH] lf_check.py : do not error on ghost push Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index 03fe47ad..cd637101 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -103,6 +103,7 @@ class lf_check(): self.background_green = "background-color:green" self.background_red = "background-color:red" self.background_purple = "background-color:purple" + self.background_blue = "background-color:blue" self.http_test_ip = "" self.ftp_test_ip = "" @@ -640,6 +641,13 @@ NOTE: for now to see stdout and stderr remove /home/lanforge from path. self.logger.info("TIMEOUT FAILURE, Check LANforge Radios") self.test_result = "Time Out" background = self.background_purple + + # Ghost will put data in stderr + if('ghost' in command): + if(self.test_result != "TIMEOUT"): + self.test_result = "Success" + background = self.background_blue + # stdout_log_link is used for the email reporting to have the corrected path stdout_log_link = str(stdout_log_txt).replace('/home/lanforge','') stderr_log_link = str(stderr_log_txt).replace('/home/lanforge','')