From 45b003316ffa02d1defafd595b669dca5bf47777 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Tue, 8 Nov 2022 14:55:17 +0100 Subject: [PATCH] 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 56416ebd65554a8101a21d72d81c59a7073c7271) --- bin/tests/system/conf.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 98a6e3d69e..e1549b3701 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -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