From 5e44fa72e07513db531ff66515b9a8cc14a99e41 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 6 Oct 2021 06:17:21 -0600 Subject: [PATCH] lf_check.py : account for 5.4.3 , ERROR: Could not find component: TestTag this is still considered a pass Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index 2fdcd075..2bff1191 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -154,6 +154,7 @@ class lf_check(): self.html_results = "" self.background_green = "background-color:green" self.background_red = "background-color:red" + self.background_orange = "background-color:orange" self.background_purple = "background-color:purple" self.background_blue = "background-color:blue" @@ -1050,9 +1051,13 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url) # 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 = "Test Failure" - background = self.background_red + # for 5.4.3 only TestTag was not present + if 'ERROR: Could not find component: TestTag' in text: + self.test_result = "Success" + background = self.background_green + elif 'error' in text.lower(): + self.test_result = "Test Fail" + background = self.background_orange else: self.test_result = "Success" background = self.background_green