2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

Use absolute path to PYTHON and PERL, so test -x works properly in system tests

This commit is contained in:
Ondřej Surý
2020-04-27 12:23:44 +02:00
parent dd0faa1556
commit 968523dd8d
3 changed files with 4 additions and 4 deletions

View File

@@ -106,12 +106,12 @@ XMLLINT=@XMLLINT@
XSLTPROC=@XSLTPROC@
# PERL will be an empty string if no perl interpreter was found.
PERL=@PERL@
PERL=$(command -v "@PERL@")
# Windows process management leave empty
PSSUSPEND=
PYTHON=@PYTHON@
PYTHON=$(command -v "@PYTHON@")
#
# Determine if we support various optional features.

View File

@@ -62,7 +62,7 @@ KEYDATA="$(< ns2/keydata sed -e 's/+/[+]/g')"
NOSPLIT="$(< ns2/keydata sed -e 's/+/[+]/g' -e 's/ //g')"
HAS_PYYAML=0
if [ -n "$PYTHON" ] ; then
if [ -x "$PYTHON" ] ; then
$PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1
fi

View File

@@ -499,7 +499,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
HAS_PYYAML=0
if [ -n "$PYTHON" ] ; then
if [ -x "$PYTHON" ] ; then
$PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1
fi