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