]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip TEST-75-RESOLVED if resolved is disabled at build time
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 29 Mar 2025 17:55:45 +0000 (17:55 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 30 Mar 2025 08:18:18 +0000 (10:18 +0200)
test/units/TEST-75-RESOLVED.sh

index 1b2f317532f65d5aa5ab4211b83711e272c7739a..f8665532194eb7ab874fe7fcfdcad39318384183 100755 (executable)
@@ -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