mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Fix PYTHONPATH set for ans.py servers by start.pl
Commit 6c010a5644324947c8c13b5600cd8d988ae7684f 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:
parent
7faa34c6ee
commit
a799dd04ad
@ -324,7 +324,7 @@ sub construct_ans_command {
|
||||
}
|
||||
|
||||
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";
|
||||
} elsif (-e "$testdir/$server/ans.pl") {
|
||||
$command = "$PERL ans.pl";
|
||||
|
Loading…
x
Reference in New Issue
Block a user