Update tests
This commit is contained in:
parent
64eb0e1f49
commit
282a8e5e5a
6
.github/workflows/cron.yml
vendored
6
.github/workflows/cron.yml
vendored
@ -106,9 +106,10 @@ jobs:
|
||||
sed -i '/pluto/d' "$log1"
|
||||
pkill -HUP rsyslog
|
||||
systemctl restart ipsec
|
||||
sleep 1
|
||||
echo "Waiting for IPsec to restart."
|
||||
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=$((count+1))
|
||||
printf '%s' '.'
|
||||
@ -400,9 +401,10 @@ jobs:
|
||||
sed -i '/pluto/d' "$log1"
|
||||
pkill -HUP rsyslog
|
||||
service ipsec restart
|
||||
sleep 1
|
||||
echo "Waiting for IPsec to restart."
|
||||
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=$((count+1))
|
||||
printf '%s' '.'
|
||||
|
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -135,9 +135,10 @@ jobs:
|
||||
sed -i '/pluto/d' "$log1"
|
||||
pkill -HUP rsyslog
|
||||
systemctl restart ipsec
|
||||
sleep 1
|
||||
echo "Waiting for IPsec to restart."
|
||||
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=$((count+1))
|
||||
printf '%s' '.'
|
||||
@ -429,9 +430,10 @@ jobs:
|
||||
sed -i '/pluto/d' "$log1"
|
||||
pkill -HUP rsyslog
|
||||
service ipsec restart
|
||||
sleep 1
|
||||
echo "Waiting for IPsec to restart."
|
||||
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=$((count+1))
|
||||
printf '%s' '.'
|
||||
|
Loading…
Reference in New Issue
Block a user