cicd: Remove all endpoints and connections before starting new test.

Fix typo in log cleanup logic.
This commit is contained in:
Ben Greear
2020-05-10 11:23:03 -07:00
parent 9073065746
commit f475a31d07

View File

@@ -85,6 +85,10 @@ DUT=`grep DUT: $SCENARIO_CFG_FILE |head -1|grep -o "DUT: .*"|cut -f2 -d ' '`
echo "Found DUT: $DUT from scenario $SCENARIO_CFG_FILE"
function pre_test {
# Remove existing data connections.
../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --cmd "cli rm_cx all all"
../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --cmd "cli rm_endp YES_ALL"
# Clean logs, this bounces radios and such too as side effect
../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --cmd "cli admin clean_logs"
@@ -173,7 +177,7 @@ if [ -d $RPT_TMPDIR ]
then
rm -fr $RPT_TMPDIR/*
fi
ssh lanforge\@GMANAGER "test -d $RPT_TMPDIR && rm -fr $RPT_TMPDIR";
ssh lanforge\@$GMANAGER "test -d $RPT_TMPDIR && rm -fr $RPT_TMPDIR";
# Do dataplane pkt size test
echo "Checking if we should run Dataplane packet size test."