Skip online test if no or empty /etc/resolv.conf (#113)

Downstream build systems, e.g. at Linux distributions like Fedora,
might be (sealed) offline (chroot) environments.
This commit is contained in:
Robert Scheck
2024-05-05 22:33:12 +00:00
committed by GitHub
parent 2ec0ea3fbd
commit 4bac9e7e53
+5 -1
View File
@@ -36,4 +36,8 @@ maintainer-clean-local:
check:
./bgpq4 -v
@echo
./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c::
-@if [ -s /etc/resolv.conf ]; then \
./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c::; \
else \
echo "No or empty /etc/resolv.conf, skipping online test"; \
fi