mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	edits
This commit is contained in:
		@@ -365,8 +365,10 @@ class LFCliBase:
 | 
				
			|||||||
        if (fail_counter == 0) and (pass_counter > 0):
 | 
					        if (fail_counter == 0) and (pass_counter > 0):
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        return False
 | 
					        return False
 | 
				
			||||||
    #use this function to 
 | 
					
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    def failed(self):
 | 
					    def failed(self):
 | 
				
			||||||
 | 
					        print(self.get_failed_result_list())
 | 
				
			||||||
        print("Test failed. Exiting now.")
 | 
					        print("Test failed. Exiting now.")
 | 
				
			||||||
        sys.exit(1)
 | 
					        sys.exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,7 +56,6 @@ class IPv4Test(LFCliBase):
 | 
				
			|||||||
            self.passed()
 | 
					            self.passed()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
				
			||||||
            print(self.get_failed_result_list())
 | 
					 | 
				
			||||||
            self.failed()
 | 
					            self.failed()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -57,7 +57,6 @@ class IPv4Test(LFCliBase):
 | 
				
			|||||||
            self.passed()
 | 
					            self.passed()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
				
			||||||
            print(self.get_failed_result_list())
 | 
					 | 
				
			||||||
            self.failed()
 | 
					            self.failed()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def cleanup(self, sta_list):
 | 
					    def cleanup(self, sta_list):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -57,9 +57,6 @@ class IPv4Test(LFCliBase):
 | 
				
			|||||||
            self.passed()
 | 
					            self.passed()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
				
			||||||
            self
 | 
					 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					 | 
				
			||||||
            print(self.get_failed_result_list())
 | 
					 | 
				
			||||||
            self.failed()
 | 
					            self.failed()
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
    def cleanup(self, sta_list):
 | 
					    def cleanup(self, sta_list):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -57,7 +57,6 @@ class IPv4Test(LFCliBase):
 | 
				
			|||||||
            self.passed()
 | 
					            self.passed()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
				
			||||||
            print(self.get_failed_result_list())
 | 
					 | 
				
			||||||
            self.failed()
 | 
					            self.failed()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,6 @@ class IPv4Test(LFCliBase):
 | 
				
			|||||||
            
 | 
					            
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
					            self._fail("Stations not able to acquire IP. Please check network input.")
 | 
				
			||||||
            print(self.get_failed_result_list())
 | 
					 | 
				
			||||||
            self.failed()
 | 
					            self.failed()
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user