]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
System tests pass through virtualenv and perlmods
authorMatthijs Mekking <matthijs@isc.org>
Fri, 17 Jun 2022 08:34:38 +0000 (10:34 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 22 Jun 2022 07:39:51 +0000 (09:39 +0200)
Have system tests use required Python (dnspython) and PERL modules
(Digest::HMAC and Net::DNS) from user directories, avoid using
privileges.

Note: The pythonenv must be setup to use the same version of python as
the test uses, for example /usr/bin/python.

Thanks to Stacey Marshall.

bin/tests/system/run.sh.in

index 0341a33f126b5e31682bdf186988fef0f9b5da93..41cd96910a3555d4d0272fec7a23d5450a9664bf 100644 (file)
@@ -89,6 +89,8 @@ if ! $do_run; then
         LOG_FLAGS="$log_flags" \
         TEST_LARGE_MAP="${TEST_LARGE_MAP}" \
         CI_ENABLE_ALL_TESTS="${CI_ENABLE_ALL_TESTS}" \
+       ${VIRTUAL_ENV:+"VIRTUAL_ENV=${VIRTUAL_ENV}"} \
+       ${PERL5LIB:+"PERL5LIB=${PERL5LIB}"} \
         make -e check
     exit $?
 fi