mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_check.py : made TIMEOUT take presidence, the checking for pass/fail would
show a pass when there was a TIMEOUT , this is important for longer tests like ap_auto that can be 3-4 hours long. Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		
				
					committed by
					
						
						shivam
					
				
			
			
				
	
			
			
			
						parent
						
							9ff8e4ae52
						
					
				
				
					commit
					02d7f9c4aa
				
			@@ -1031,7 +1031,13 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
 | 
			
		||||
                            "lanforge_server_version_full {lanforge_server_version_full}\n".format(
 | 
			
		||||
                                lanforge_server_version_full=self.lanforge_server_version_full[0]))
 | 
			
		||||
                        meta_data_fd.close()
 | 
			
		||||
 | 
			
		||||
                    # Timeout needs to be reported and not overwriten
 | 
			
		||||
                    if self.test_result == "TIMEOUT":
 | 
			
		||||
                        self.logger.info(
 | 
			
		||||
                            "TIMEOUT FAILURE,  Check LANforge Radios")
 | 
			
		||||
                        self.test_result = "Time Out"
 | 
			
		||||
                        background = self.background_purple
 | 
			
		||||
                    else:
 | 
			
		||||
                        stderr_log_size = os.path.getsize(stderr_log_txt)
 | 
			
		||||
                        if stderr_log_size > 0:
 | 
			
		||||
                            self.logger.info(
 | 
			
		||||
@@ -1082,13 +1088,6 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
 | 
			
		||||
                            self.test_result = "Failure"
 | 
			
		||||
                            background = self.background_red
 | 
			
		||||
 | 
			
		||||
                    # if there was a
 | 
			
		||||
                    if self.test_result == "TIMEOUT":
 | 
			
		||||
                        self.logger.info(
 | 
			
		||||
                            "TIMEOUT FAILURE,  Check LANforge Radios")
 | 
			
		||||
                        self.test_result = "Time Out"
 | 
			
		||||
                        background = self.background_purple
 | 
			
		||||
 | 
			
		||||
                    # Total up test, tests success, tests failure, tests
 | 
			
		||||
                    # timeouts
 | 
			
		||||
                    self.tests_run += 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user