1
0
mirror of synced 2024-11-29 16:16:03 +03:00

Update tests

This commit is contained in:
hwdsl2 2021-06-12 22:34:34 -05:00
parent 64eb0e1f49
commit 282a8e5e5a
2 changed files with 8 additions and 4 deletions

View File

@ -106,9 +106,10 @@ jobs:
sed -i '/pluto/d' "$log1" sed -i '/pluto/d' "$log1"
pkill -HUP rsyslog pkill -HUP rsyslog
systemctl restart ipsec systemctl restart ipsec
sleep 1
echo "Waiting for IPsec to restart." echo "Waiting for IPsec to restart."
count=0 count=0
while ! grep -q 'listening for IKE messages' "$log1"; do while ! grep -q "pluto\[$(cat /var/run/pluto/pluto.pid)\]: listening for IKE messages" "$log1"; do
[ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; } [ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; }
count=$((count+1)) count=$((count+1))
printf '%s' '.' printf '%s' '.'
@ -400,9 +401,10 @@ jobs:
sed -i '/pluto/d' "$log1" sed -i '/pluto/d' "$log1"
pkill -HUP rsyslog pkill -HUP rsyslog
service ipsec restart service ipsec restart
sleep 1
echo "Waiting for IPsec to restart." echo "Waiting for IPsec to restart."
count=0 count=0
while ! grep -q 'listening for IKE messages' "$log1"; do while ! grep -q "pluto\[$(cat /var/run/pluto/pluto.pid)\]: listening for IKE messages" "$log1"; do
[ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; } [ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; }
count=$((count+1)) count=$((count+1))
printf '%s' '.' printf '%s' '.'

View File

@ -135,9 +135,10 @@ jobs:
sed -i '/pluto/d' "$log1" sed -i '/pluto/d' "$log1"
pkill -HUP rsyslog pkill -HUP rsyslog
systemctl restart ipsec systemctl restart ipsec
sleep 1
echo "Waiting for IPsec to restart." echo "Waiting for IPsec to restart."
count=0 count=0
while ! grep -q 'listening for IKE messages' "$log1"; do while ! grep -q "pluto\[$(cat /var/run/pluto/pluto.pid)\]: listening for IKE messages" "$log1"; do
[ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; } [ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; }
count=$((count+1)) count=$((count+1))
printf '%s' '.' printf '%s' '.'
@ -429,9 +430,10 @@ jobs:
sed -i '/pluto/d' "$log1" sed -i '/pluto/d' "$log1"
pkill -HUP rsyslog pkill -HUP rsyslog
service ipsec restart service ipsec restart
sleep 1
echo "Waiting for IPsec to restart." echo "Waiting for IPsec to restart."
count=0 count=0
while ! grep -q 'listening for IKE messages' "$log1"; do while ! grep -q "pluto\[$(cat /var/run/pluto/pluto.pid)\]: listening for IKE messages" "$log1"; do
[ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; } [ "$count" -ge "30" ] && { echo "IPsec failed to start."; exit 1; }
count=$((count+1)) count=$((count+1))
printf '%s' '.' printf '%s' '.'