mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
bash doesn't like spaces around operands
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -8,8 +8,8 @@ HOMEPATH=$(realpath ~)
|
|||||||
NUM_STA=4
|
NUM_STA=4
|
||||||
FILESIZE1=$(echo ${#1})
|
FILESIZE1=$(echo ${#1})
|
||||||
FILESIZE2=$(echo ${#2})
|
FILESIZE2=$(echo ${#2})
|
||||||
if (( $FILESIZE1 > 0 )); then
|
if (( $FILESIZE1>0 )); then
|
||||||
if (( $FILESIZE2 > 0 )); then
|
if (( $FILESIZE2>0 )); then
|
||||||
SSID_USED=$1
|
SSID_USED=$1
|
||||||
PASSWD_USED=$2
|
PASSWD_USED=$2
|
||||||
SECURITY=$3
|
SECURITY=$3
|
||||||
@@ -92,7 +92,6 @@ if (( ${mgrlen} > 0 )); then
|
|||||||
"./test_status_msg.py --debug --mgr $MGR" #this is all which is needed to run
|
"./test_status_msg.py --debug --mgr $MGR" #this is all which is needed to run
|
||||||
#"./test_wanlink.py --debug --mgr $MGR"
|
#"./test_wanlink.py --debug --mgr $MGR"
|
||||||
#"./ws_generic_monitor_test.py --mgr $MGR"
|
#"./ws_generic_monitor_test.py --mgr $MGR"
|
||||||
"../py-json/ws-sta-monitor.py --debug --mgr $MGR"
|
|
||||||
"./create_bridge.py --radio wiphy1 --upstream_port eth1 --target_device sta0000 --debug --mgr $MGR"
|
"./create_bridge.py --radio wiphy1 --upstream_port eth1 --target_device sta0000 --debug --mgr $MGR"
|
||||||
"./create_l3.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR"
|
"./create_l3.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR"
|
||||||
"./create_l4.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR"
|
"./create_l4.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR"
|
||||||
@@ -196,7 +195,7 @@ function echo_print() {
|
|||||||
|
|
||||||
function run_test() {
|
function run_test() {
|
||||||
for i in "${testCommands[@]}"; do
|
for i in "${testCommands[@]}"; do
|
||||||
if (( ${mgrlen} > 0 )); then
|
if (( ${mgrlen}>0 )); then
|
||||||
./scenario.py --load FACTORY_DFLT --mgr ${MGR}
|
./scenario.py --load FACTORY_DFLT --mgr ${MGR}
|
||||||
else
|
else
|
||||||
./scenario.py --load FACTORY_DFLT
|
./scenario.py --load FACTORY_DFLT
|
||||||
|
|||||||
Reference in New Issue
Block a user