From 381ae851723c3dbaf3b264c89c51deaaa0363b46 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 6 Jan 2022 14:56:23 -0800 Subject: [PATCH] regression_test: Make a simpler call for the beginning of function test() when we call scenario.py Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index f8c5a149..aa4ed1e5 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -157,7 +157,6 @@ if [[ ${#SSID_USED} -gt 0 ]]; then fi NUM_STA=${NUM_STA:-4} TEST_HTTP_IP=${TEST_HTTP_IP:-10.40.0.1} -MGRLEN=${#MGR} COL_NAMES="name,tx_bytes,rx_bytes,dropped" if [[ ${#DUT2} -eq 0 ]]; then @@ -399,10 +398,10 @@ function echo_print() { } function test() { - if [[ $MGRLEN -gt 0 ]]; then - ./scenario.py --load BLANK --mgr "${MGR}" --check_phantom "${PORTS}" || return 1 # --quit_on_phantom || return 1 + if [[ ${#PORTS} -gt 0 ]]; then + ./scenario.py --load BLANK --mgr "${MGR}" --check_phantom "${PORTS}" || return 1 else - ./scenario.py --load BLANK --check_phantom "${PORTS}" || return 1 + ./scenario.py --load BLANK --mgr "${MGR}" || return 1 fi echo ""