mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	fix regression test logic to determine length of user defined variables
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
		@@ -4,9 +4,16 @@
 | 
			
		||||
# OPTION TWO: ./test_all_scripts.sh 4 5 :  this command runs py-script commands (in testCommands array) that include the py-script options beginning with 4 and 5 (inclusive) in case function ret_case_num.
 | 
			
		||||
#Variables
 | 
			
		||||
NUM_STA=4
 | 
			
		||||
SSID_USED=$1 || SSID_USED="jedway-wpa2-x2048-5-3"
 | 
			
		||||
PASSWD_USED=$2 || PASSWD_USED="jedway-wpa2-x2048-5-3"
 | 
			
		||||
RADIO_USED=$3 || RADIO_USED="wiphy0"
 | 
			
		||||
FILESIZE1=$(echo ${#1})
 | 
			
		||||
if (( $FILESIZE1 > 0 )); then
 | 
			
		||||
  SSID_USED=$1
 | 
			
		||||
  PASSWD_USED=$2
 | 
			
		||||
  RADIO_USED=$3
 | 
			
		||||
else
 | 
			
		||||
  SSID_USED="jedway-wpa2-x2048-5-3"
 | 
			
		||||
  PASSWD_USED="jedway-wpa2-x2048-5-3"
 | 
			
		||||
  RADIO_USED="wiphy0"
 | 
			
		||||
fi
 | 
			
		||||
SECURITY="wpa2"
 | 
			
		||||
COL_NAMES="name,tx_bytes,rx_bytes,dropped"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user