]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make Perl interpreter required for system tests
authorTom Krizek <tkrizek@isc.org>
Tue, 8 Nov 2022 13:54:14 +0000 (14:54 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 21 Dec 2022 09:09:49 +0000 (10:09 +0100)
This change has no practical impact, as Perl was already required for
all system tests, this check only makes it more explicit.

bin/tests/system/conf.sh.in

index a6999e39b2b725f04b44836ab4917053cd895e69..548a3e405ea19967fcca9c34a7cae1b27d64f5af 100644 (file)
@@ -80,7 +80,11 @@ export PYTEST=@PYTEST@
 #
 # Interpreters for system tests detected by configure
 #
-export PERL=$(command -v "@PERL@")
+export PERL=$(command -v "@PERL@" || true)
+if ! test -x "$PERL"; then
+    echo "Perl interpreter is required for system tests."
+    exit 77
+fi
 export PYTHON=$(command -v "@PYTHON@" || true)
 
 # Load common values