testing: Avoid delays with ping by using -W and -i options

With -W we reduce timeouts when we don't expect a response.  With -i the
interval between pings is reduced (mostly in case of auto=route where
the first ping yields no reply).
This commit is contained in:
Tobias Brunner
2015-11-09 15:18:35 +01:00
parent f519acd42f
commit cbaafa03c7
33 changed files with 55 additions and 55 deletions
@@ -5,7 +5,7 @@ moon::ipsec start
sun::ipsec start
bob::ipsec start
moon::expect-connection alice
moon::ping -n -c 3 -s 8184 -p deadbeef PH_IP_ALICE
moon::ping -n -c 3 -s 8184 -p deadbeef PH_IP_SUN
moon::ping -n -c 3 -W 1 -i 0.2 -s 8184 -p deadbeef PH_IP_ALICE
moon::ping -n -c 3 -W 1 -i 0.2 -s 8184 -p deadbeef PH_IP_SUN
bob::expect-connection sun
bob::ping -n -c 3 -s 8184 -p deadbeef PH_IP_SUN1
bob::ping -n -c 3 -W 1 -i 0.2 -s 8184 -p deadbeef PH_IP_SUN1