Skip to content

Commit

Permalink
Skip online test if no or empty /etc/resolv.conf (#113)
Browse files Browse the repository at this point in the history
Downstream build systems, e.g. at Linux distributions like Fedora,
might be (sealed) offline (chroot) environments.
  • Loading branch information
robert-scheck authored May 5, 2024
1 parent 2ec0ea3 commit 4bac9e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4bac9e7

Please sign in to comment.