]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make Python interpreter required for system tests
authorTom Krizek <tkrizek@isc.org>
Tue, 8 Nov 2022 13:55:17 +0000 (14:55 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 21 Dec 2022 09:49:33 +0000 (10:49 +0100)
This introduces a Python dependency for running system tests. It is
needed in order to:
  - write new test control scripts in Python
  - gradually rewrite old Perl scripts into Python if needed
  - eventually introduce pytest as the new test runner framework

This commit is not intended to be backported to 9.16.

(cherry picked from commit 56416ebd65554a8101a21d72d81c59a7073c7271)

bin/tests/system/conf.sh.in

index 98a6e3d69ea15ba020db8269ad3b1b93ebf3d738..e1549b3701f17a591efe0892073b7c53dcb4c65d 100644 (file)
@@ -87,6 +87,10 @@ if ! test -x "$PERL"; then
     exit 77
 fi
 export PYTHON=$(command -v "@PYTHON@" || true)
+if ! test -x "$PYTHON"; then
+    echo "Python interpreter is required for system tests."
+    exit 77
+fi
 
 # Load common values
 . $TOP_SRCDIR/bin/tests/system/conf.sh.common