aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-09-13 12:26:55 +0200
committerTobias Brunner <tobias@strongswan.org>2016-09-20 15:36:14 +0200
commit6307a18fe127fcc08b3e36d8df3e2826bc134eb5 (patch)
treeac1a36b655204156cbad0ed69ea47c7ba6b1620e
parentd8b2980aa5a9fcc87ec43089e0fc1e91907e4501 (diff)
downloadstrongswan-6307a18fe127fcc08b3e36d8df3e2826bc134eb5.tar.bz2
strongswan-6307a18fe127fcc08b3e36d8df3e2826bc134eb5.tar.xz
testing: Fix totals if post test checks fail
-rwxr-xr-xtesting/do-tests24
1 files 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
@@ -496,18 +496,6 @@ do
##########################################################################
- # 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
# create index.html for the given test case
@@ -888,6 +876,18 @@ do
##########################################################################
+ # set counters
+ #
+
+ if [ $STATUS = "failed" ]
+ then
+ let "failed_cnt += 1"
+ else
+ let "passed_cnt += 1"
+ fi
+
+
+ ##########################################################################
# write test status to html file
#
testend=$(date +%s)