mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	sta_connect: Remove invalid comparisons
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -267,7 +267,7 @@ class StaConnect(LFCliBase):
 | 
				
			|||||||
            else:
 | 
					            else:
 | 
				
			||||||
                self._pass("%s connected to AP: %s  With IP: %s" % (sta_name, ap, ip))
 | 
					                self._pass("%s connected to AP: %s  With IP: %s" % (sta_name, ap, ip))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if self.passes() == False:
 | 
					        if not self.passes():
 | 
				
			||||||
            if self.cleanup_on_exit:
 | 
					            if self.cleanup_on_exit:
 | 
				
			||||||
                print("Cleaning up...")
 | 
					                print("Cleaning up...")
 | 
				
			||||||
                self.remove_stations()
 | 
					                self.remove_stations()
 | 
				
			||||||
@@ -532,17 +532,14 @@ Example:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    run_results = staConnect.get_result_list()
 | 
					    run_results = staConnect.get_result_list()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    
 | 
					    if not staConnect.passes():
 | 
				
			||||||
    is_passing = staConnect.passes()
 | 
					 | 
				
			||||||
    if is_passing == False:
 | 
					 | 
				
			||||||
        print("FAIL:  Some tests failed")
 | 
					        print("FAIL:  Some tests failed")
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        print("PASS:  All tests pass")
 | 
					        print("PASS:  All tests pass")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    print(staConnect.get_all_message())
 | 
					    print(staConnect.get_all_message())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    is_passing = staConnect.passes()
 | 
					    if not staConnect.passes():
 | 
				
			||||||
    if is_passing == False:
 | 
					 | 
				
			||||||
        print("FAIL:  Some tests failed")
 | 
					        print("FAIL:  Some tests failed")
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        print("PASS:  All tests pass")
 | 
					        print("PASS:  All tests pass")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user