mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Added test pass check to end of main() to improve readability on successful test
This commit is contained in:
		@@ -134,14 +134,15 @@ def main():
 | 
				
			|||||||
        print(ip_test.get_fail_message())
 | 
					        print(ip_test.get_fail_message())
 | 
				
			||||||
        exit(1)
 | 
					        exit(1)
 | 
				
			||||||
    ip_test.start()
 | 
					    ip_test.start()
 | 
				
			||||||
    print("Full Test Passed: %s" % ip_test.run_test(ip_test.sta_list))
 | 
					    ip_test.run_test(ip_test.sta_list)
 | 
				
			||||||
    ip_test.stop()
 | 
					    ip_test.stop()
 | 
				
			||||||
    if not ip_test.passes():
 | 
					    if not ip_test.passes():
 | 
				
			||||||
        print(ip_test.get_fail_message())
 | 
					        print(ip_test.get_fail_message())
 | 
				
			||||||
        exit(1)
 | 
					        exit(1)
 | 
				
			||||||
    time.sleep(30)
 | 
					    time.sleep(30)
 | 
				
			||||||
    ip_test.cleanup(1)
 | 
					    ip_test.cleanup(1)
 | 
				
			||||||
 | 
					    if ip_test.passes():
 | 
				
			||||||
 | 
					        print("Full test passed, all stations associated and got IP")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
    main()
 | 
					    main()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user