mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	test_l3_longevity.py : added --no_pre_cleanup and --no_cleanup
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		
				
					committed by
					
						
						shivam
					
				
			
			
				
	
			
			
			
						parent
						
							bd3a650979
						
					
				
				
					commit
					490aa2c30c
				
			@@ -2873,6 +2873,12 @@ Setting wifi_settings per radio
 | 
			
		||||
    parser.add_argument('--sta_start_offset', help='Station start offset for building stations',
 | 
			
		||||
                        default='0')
 | 
			
		||||
 | 
			
		||||
    parser.add_argument('--no_pre_cleanup', help='Do not pre cleanup stations on start',
 | 
			
		||||
                        action='store_true')
 | 
			
		||||
 | 
			
		||||
    parser.add_argument('--no_cleanup', help='Do not cleanup before exit',
 | 
			
		||||
                        action='store_true')
 | 
			
		||||
 | 
			
		||||
    # logging configuration
 | 
			
		||||
    parser.add_argument(
 | 
			
		||||
        "--lf_logger_config_json",
 | 
			
		||||
@@ -3226,6 +3232,10 @@ Setting wifi_settings per radio
 | 
			
		||||
        ap_chanim_cmd_2g=ap_chanim_cmd_2g,
 | 
			
		||||
        ap_test_mode=ap_test_mode)
 | 
			
		||||
 | 
			
		||||
    if args.no_pre_cleanup:
 | 
			
		||||
        logger.info("No station pre clean up any existing cxs on LANforge")
 | 
			
		||||
    else:
 | 
			
		||||
        logger.info("clean up any existing cxs on LANforge")
 | 
			
		||||
        ip_var_test.pre_cleanup()
 | 
			
		||||
 | 
			
		||||
    ip_var_test.build()
 | 
			
		||||
@@ -3243,7 +3253,12 @@ Setting wifi_settings per radio
 | 
			
		||||
        "Pausing {} seconds for manual inspection before clean up.".format(
 | 
			
		||||
            args.wait))
 | 
			
		||||
    time.sleep(int(args.wait))
 | 
			
		||||
 | 
			
		||||
    if args.no_cleanup:
 | 
			
		||||
        logger.info("--no_cleanup set stations will be left intack")
 | 
			
		||||
    else:
 | 
			
		||||
        ip_var_test.cleanup()
 | 
			
		||||
 | 
			
		||||
    if ip_var_test.passes():
 | 
			
		||||
        logger.info("Full test passed, all connections increased rx bytes")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user