From: Luca Boccassi Date: Sat, 29 Mar 2025 17:55:45 +0000 (+0000) Subject: test: skip TEST-75-RESOLVED if resolved is disabled at build time X-Git-Tag: v258-rc1~992 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75b16ac59ed25d6aad77d5a39022476312fb3349;p=thirdparty%2Fsystemd.git test: skip TEST-75-RESOLVED if resolved is disabled at build time --- diff --git a/test/units/TEST-75-RESOLVED.sh b/test/units/TEST-75-RESOLVED.sh index 1b2f317532f..f8665532194 100755 --- a/test/units/TEST-75-RESOLVED.sh +++ b/test/units/TEST-75-RESOLVED.sh @@ -21,6 +21,11 @@ if ! command knotc >/dev/null; then exit 77 fi +if ! command -v resolvectl >/dev/null || ! command -v networkctl >/dev/null; then + echo "resolved/networkd not found, skipping..." | tee --append /skipped + exit 77 +fi + # We need at least Knot 3.0 which support (among others) the ds-push directive knotc -c /usr/lib/systemd/tests/testdata/knot-data/knot.conf conf-check