mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 10:48:02 +00:00 
			
		
		
		
	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 <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		| @@ -154,6 +154,7 @@ class lf_check(): | |||||||
|         self.html_results = "" |         self.html_results = "" | ||||||
|         self.background_green = "background-color:green" |         self.background_green = "background-color:green" | ||||||
|         self.background_red = "background-color:red" |         self.background_red = "background-color:red" | ||||||
|  |         self.background_orange = "background-color:orange" | ||||||
|         self.background_purple = "background-color:purple" |         self.background_purple = "background-color:purple" | ||||||
|         self.background_blue = "background-color:blue" |         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 |                     # Check to see if there is an error in stdout_log | ||||||
|                     if stdout_log_size > 0: |                     if stdout_log_size > 0: | ||||||
|                         text = open(stdout_log_txt).read() |                         text = open(stdout_log_txt).read() | ||||||
|                         if 'error' in text.lower(): |                         # for 5.4.3 only TestTag was not present | ||||||
|                             self.test_result = "Test Failure" |                         if 'ERROR:  Could not find component: TestTag' in text: | ||||||
|                             background = self.background_red |                             self.test_result = "Success" | ||||||
|  |                             background = self.background_green | ||||||
|  |                         elif 'error' in text.lower(): | ||||||
|  |                             self.test_result = "Test Fail" | ||||||
|  |                             background = self.background_orange | ||||||
|                         else: |                         else: | ||||||
|                             self.test_result = "Success" |                             self.test_result = "Success" | ||||||
|                             background = self.background_green |                             background = self.background_green | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chuck SmileyRekiere
					Chuck SmileyRekiere