From ee849d2a0c81795e68ac772879bc58b6f74d60cf Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Mon, 4 Sep 2023 13:49:18 +0200 Subject: [PATCH] Use proper perl interpreter in xfer system test (cherry picked from commit f0493890cc0fc18b807ec87eec06a298cafdbe06) --- bin/tests/system/xfer/prereq.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/xfer/prereq.sh b/bin/tests/system/xfer/prereq.sh index c7b78281e2..16d04a26bd 100644 --- a/bin/tests/system/xfer/prereq.sh +++ b/bin/tests/system/xfer/prereq.sh @@ -16,9 +16,9 @@ # macOS ships with Net::DNS 0.74 which does not work with # HMAC-SHA256, despite the workarounds in ans.pl -if perl -MNet::DNS -e 'exit $Net::DNS::VERSION >= 1.0' +if ${PERL} -MNet::DNS -e 'exit ($Net::DNS::VERSION >= 1.0)' then - version=$(perl -MNet::DNS -e 'print $Net::DNS::VERSION') + version=$(${PERL} -MNet::DNS -e 'print $Net::DNS::VERSION') echo_i "perl Net::DNS $version is too old - skipping xfer test" exit 1 fi