Skip relays in prcheck

This commit is contained in:
Frank Denis 2021-02-23 16:59:07 +01:00
parent d12595bd48
commit a117af84f1

View File

@ -53,9 +53,12 @@ while read -r stamp; do
./dnscrypt-proxy -config "$CONFIG" -pidfile "$PIDFILE" -logfile "$LOGFILE" -loglevel 1 &
sleep 5
skip_log=false
if grep -q 'ERROR.*\[.*:.*]:' "$LOGFILE"; then
if grep -q 'DNSCrypt relay' "$LOGFILE"; then
echo "(skipping due to IPv6 not being supported by GitHub Actions)"
skip_log=true
elif grep -q 'ERROR.*\[.*:.*]:' "$LOGFILE"; then
echo "(skipping due to relays not being handled by this test)"
skip_log=true
elif ! ./dnscrypt-proxy -config "$CONFIG" -resolve example.com; then
echo "** UNABLE TO GET A RESPONSE FROM THE RESOLVER **"
echo "Bogus stamp: ${stamp}"