mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 12:48:00 +00:00 
			
		
		
		
	added pass/fail method in lfcli and edited example_x functions
This commit is contained in:
		@@ -53,11 +53,12 @@ class IPv4Test(LFCliBase):
 | 
			
		||||
        self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
 | 
			
		||||
        self.station_profile.admin_up()
 | 
			
		||||
        if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
 | 
			
		||||
            self._pass("Station build finished", print_=True)
 | 
			
		||||
            exit(0)
 | 
			
		||||
            self._pass("Station build finished")
 | 
			
		||||
            self.passed()
 | 
			
		||||
        else:
 | 
			
		||||
            self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
 | 
			
		||||
            exit(1)
 | 
			
		||||
            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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user