1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

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-06 00:33:12 +02:00
committed by GitHub
parent 2ec0ea3fbd
commit 4bac9e7e53

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