Add expect-connection guest image script

This script can be used in pretest.dat files to wait until an IPsec
connection becomes available. This avoids unconditional sleeps and
improves test performance.

The ipv6 tests have been updated to use the expect-connection script.
This commit is contained in:
Reto Buerki
2013-01-17 16:54:55 +01:00
committed by Tobias Brunner
parent 44e83859e0
commit 76ccd25a05
21 changed files with 74 additions and 39 deletions
+3 -2
View File
@@ -7,7 +7,8 @@ dave::"ip route add fec1:\:/16 via fec0:\:1"
moon::ipsec start
carol::ipsec start
dave::ipsec start
carol::sleep 1
moon::expect-connection rw
carol::expect-connection home
dave::expect-connection home
carol::ipsec up home
dave::ipsec up home
dave::sleep 2