From: Matthijs Mekking Date: Fri, 17 Jun 2022 08:34:38 +0000 (+0200) Subject: System tests pass through virtualenv and perlmods X-Git-Tag: v9.19.3~33^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53eb127be14e3c0c51725f1224643e4a0043d28d;p=thirdparty%2Fbind9.git System tests pass through virtualenv and perlmods 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. --- diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 0341a33f126..41cd96910a3 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -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