CI: hide IPv6 logs
This commit is contained in:
parent
fe032c1725
commit
d79e09934b
16
.github/workflows/prcheck.sh
vendored
16
.github/workflows/prcheck.sh
vendored
@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
for aux in v3/parental-control.md v3/opennic.md; do
|
for aux in v3/parental-control.md v3/opennic.md; do
|
||||||
grep '^## ' "$aux" | while read entry; do
|
grep '^## ' "$aux" | while read -r entry; do
|
||||||
if ! grep -Fq "$entry" v3/public-resolvers.md; then
|
if ! grep -Fq "$entry" v3/public-resolvers.md; then
|
||||||
echo "Present in [$aux] but not in public-resolvers.md:"
|
echo "Present in [$aux] but not in public-resolvers.md:"
|
||||||
echo "$entry"
|
echo "$entry"
|
||||||
@ -52,20 +52,24 @@ while read -r stamp; do
|
|||||||
} >"$CONFIG"
|
} >"$CONFIG"
|
||||||
./dnscrypt-proxy -config "$CONFIG" -pidfile "$PIDFILE" -logfile "$LOGFILE" -loglevel 1 &
|
./dnscrypt-proxy -config "$CONFIG" -pidfile "$PIDFILE" -logfile "$LOGFILE" -loglevel 1 &
|
||||||
sleep 5
|
sleep 5
|
||||||
|
skip_log=false
|
||||||
if grep -q 'ERROR.*\[.*:.*]:' "$LOGFILE"; then
|
if grep -q 'ERROR.*\[.*:.*]:' "$LOGFILE"; then
|
||||||
echo "(skipping due to IPv6 not being supported by GitHub Actions)"
|
echo "(skipping due to IPv6 not being supported by GitHub Actions)"
|
||||||
|
skip_log=true
|
||||||
elif ! ./dnscrypt-proxy -config "$CONFIG" -resolve example.com; then
|
elif ! ./dnscrypt-proxy -config "$CONFIG" -resolve example.com; then
|
||||||
echo "** UNABLE TO GET A RESPONSE FROM THE RESOLVER **"
|
echo "** UNABLE TO GET A RESPONSE FROM THE RESOLVER **"
|
||||||
echo "Bogus stamp: ${stamp}"
|
echo "Bogus stamp: ${stamp}"
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
fi
|
||||||
kill $(cat "$PIDFILE")
|
kill $(cat "$PIDFILE")
|
||||||
cat "$LOGFILE"
|
if [ "$skip_log" = false ]; then
|
||||||
if grep -v 'ERROR.*\[.*:.*]:' "$LOGFILE" | grep -q 'ERROR|CRITICAL|FATAL'; then
|
cat "$LOGFILE"
|
||||||
echo "** ERRORS FOUND **"
|
if grep -v 'ERROR.*\[.*:.*]:' "$LOGFILE" | grep -q 'ERROR|CRITICAL|FATAL'; then
|
||||||
exit_code=1
|
echo "** ERRORS FOUND **"
|
||||||
|
exit_code=1
|
||||||
|
fi
|
||||||
|
echo "Done!"
|
||||||
fi
|
fi
|
||||||
echo "Done!"
|
|
||||||
echo
|
echo
|
||||||
done <"$NEW_ENTRIES"
|
done <"$NEW_ENTRIES"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user