Make Python interpreter required for system tests

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 56416ebd65)
This commit is contained in:
Tom Krizek 2022-11-08 14:55:17 +01:00
parent efa09a37f3
commit 45b003316f
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View 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