aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-08-21 14:32:29 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-21 18:27:06 +0200
commitc91682d1b82959d6d18972d0a73736c8469c8e0f (patch)
tree75177b365711989ca33a226ee37e86988c15ef53 /testing
parentd8fdd1018e1654b04b614354a493026a9dad30e5 (diff)
downloadstrongswan-c91682d1b82959d6d18972d0a73736c8469c8e0f.tar.bz2
strongswan-c91682d1b82959d6d18972d0a73736c8469c8e0f.tar.xz
testing: Flush state and policies before every scenario
Similar to conntrack we make sure we are working on a clean slate.
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/do-tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/do-tests b/testing/do-tests
index f12101926..5191d9007 100755
--- a/testing/do-tests
+++ b/testing/do-tests
@@ -364,6 +364,14 @@ do
ssh $SSHCONF root@`eval echo \\\$ipv4_$host` 'conntrack -F' >/dev/null 2>&1
done
+ ##########################################################################
+ # flush IPsec state on all hosts
+ #
+
+ for host in $STRONGSWANHOSTS
+ do
+ ssh $SSHCONF root@`eval echo \\\$ipv4_$host` 'ip xfrm state flush; ip xfrm policy flush' >/dev/null 2>&1
+ done
##########################################################################
# execute pre-test commands