summaryrefslogtreecommitdiffstats
path: root/test/TEST-75-RESOLVED
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-06-02 21:10:08 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-06-05 16:50:13 +0200
commit70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62 (patch)
tree87f5fc76ee5da8bfac09ad464f30ddafec89cd40 /test/TEST-75-RESOLVED
parenttest: fix indentation (diff)
downloadsystemd-70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62.tar.xz
systemd-70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62.zip
test: introduce test_require_bin() and use it
No functional change.
Diffstat (limited to 'test/TEST-75-RESOLVED')
-rwxr-xr-xtest/TEST-75-RESOLVED/test.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/TEST-75-RESOLVED/test.sh b/test/TEST-75-RESOLVED/test.sh
index 6c63db65fb..cbb9e3dbbf 100755
--- a/test/TEST-75-RESOLVED/test.sh
+++ b/test/TEST-75-RESOLVED/test.sh
@@ -9,10 +9,7 @@ NSPAWN_ARGUMENTS="--private-network"
# shellcheck source=test/test-functions
. "${TEST_BASE_DIR:?}/test-functions"
-if ! command -v knotd >/dev/null; then
- echo "This test requires Knot DNS server, skipping..."
- exit 0
-fi
+test_require_bin knotd
# We need at least Knot 3.0 which support (among others) the ds-push directive
if ! knotc -c "${TEST_BASE_DIR:?}/knot-data/knot.conf" conf-check; then