regression_test: Make a simpler call for the beginning of function test() when we call scenario.py

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-06 14:56:23 -08:00
committed by shivam
parent f5f29ea9ee
commit 381ae85172

View File

@@ -157,7 +157,6 @@ if [[ ${#SSID_USED} -gt 0 ]]; then
fi fi
NUM_STA=${NUM_STA:-4} NUM_STA=${NUM_STA:-4}
TEST_HTTP_IP=${TEST_HTTP_IP:-10.40.0.1} TEST_HTTP_IP=${TEST_HTTP_IP:-10.40.0.1}
MGRLEN=${#MGR}
COL_NAMES="name,tx_bytes,rx_bytes,dropped" COL_NAMES="name,tx_bytes,rx_bytes,dropped"
if [[ ${#DUT2} -eq 0 ]]; then if [[ ${#DUT2} -eq 0 ]]; then
@@ -399,10 +398,10 @@ function echo_print() {
} }
function test() { function test() {
if [[ $MGRLEN -gt 0 ]]; then if [[ ${#PORTS} -gt 0 ]]; then
./scenario.py --load BLANK --mgr "${MGR}" --check_phantom "${PORTS}" || return 1 # --quit_on_phantom || return 1 ./scenario.py --load BLANK --mgr "${MGR}" --check_phantom "${PORTS}" || return 1
else else
./scenario.py --load BLANK --check_phantom "${PORTS}" || return 1 ./scenario.py --load BLANK --mgr "${MGR}" || return 1
fi fi
echo "" echo ""