From 6307a18fe127fcc08b3e36d8df3e2826bc134eb5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 13 Sep 2016 12:26:55 +0200 Subject: testing: Fix totals if post test checks fail --- testing/do-tests | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/testing/do-tests b/testing/do-tests index e24cbe5f4..fd5cfe61b 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -495,18 +495,6 @@ do }' $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 # get copies of ipsec.conf, ipsec.secrets @@ -887,6 +875,18 @@ do $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 # -- cgit v1.2.3