testing: Fix totals if post test checks fail
This commit is contained in:
+12
-12
@@ -495,18 +495,6 @@ do
|
|||||||
}' $TESTDIR/evaltest.dat` >> $CONSOLE_LOG 2>&1
|
}' $TESTDIR/evaltest.dat` >> $CONSOLE_LOG 2>&1
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
|
||||||
# set counters
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ $STATUS = "failed" ]
|
|
||||||
then
|
|
||||||
let "failed_cnt += 1"
|
|
||||||
else
|
|
||||||
let "passed_cnt += 1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# log statusall and listall output
|
# log statusall and listall output
|
||||||
# get copies of ipsec.conf, ipsec.secrets
|
# get copies of ipsec.conf, ipsec.secrets
|
||||||
@@ -887,6 +875,18 @@ do
|
|||||||
$DIR/scripts/restore-defaults $testname
|
$DIR/scripts/restore-defaults $testname
|
||||||
|
|
||||||
|
|
||||||
|
##########################################################################
|
||||||
|
# set counters
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ $STATUS = "failed" ]
|
||||||
|
then
|
||||||
|
let "failed_cnt += 1"
|
||||||
|
else
|
||||||
|
let "passed_cnt += 1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# write test status to html file
|
# write test status to html file
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user