From efa09a37f3e6e128d35b74fff7928083cd8e0731 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Tue, 8 Nov 2022 14:54:14 +0100 Subject: [PATCH] Make Perl interpreter required for system tests This change has no practical impact, as Perl was already required for all system tests, this check only makes it more explicit. (cherry picked from commit 084d72d1d5ea38f4ccc600fd04d61fed1c3124c3) --- bin/tests/system/conf.sh.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 8d4a55c21c..98a6e3d69e 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -81,7 +81,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