From 084d72d1d5ea38f4ccc600fd04d61fed1c3124c3 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. --- 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 a6999e39b2..548a3e405e 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -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