mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Fix PYTHONPATH set for ans.py servers by start.pl
Commit 6c010a5644
caused the PYTHONPATH
environment variable to be set for ans.py servers started using
start.pl. However, no system test has actually used the new
isctest.asyncserver module since that change was applied, so it has not
been noticed until now that including the source directory in PYTHONPATH
is only sufficient for in-tree builds. Include the build directory
instead of the source directory in the PYTHONPATH environment variable
set for ans.py servers started by start.pl so that they work correctly
for both in-tree and out-of-tree builds.
This commit is contained in:
@@ -324,7 +324,7 @@ sub construct_ans_command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-e "$testdir/$server/ans.py") {
|
if (-e "$testdir/$server/ans.py") {
|
||||||
$ENV{'PYTHONPATH'} = $testdir . ":" . $ENV{'srcdir'};
|
$ENV{'PYTHONPATH'} = $testdir . ":" . $builddir;
|
||||||
$command = "$PYTHON -u ans.py 10.53.0.$n $queryport";
|
$command = "$PYTHON -u ans.py 10.53.0.$n $queryport";
|
||||||
} elsif (-e "$testdir/$server/ans.pl") {
|
} elsif (-e "$testdir/$server/ans.pl") {
|
||||||
$command = "$PERL ans.pl";
|
$command = "$PERL ans.pl";
|
||||||
|
Reference in New Issue
Block a user