]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix pytest module detection for run.sh
authorTom Krizek <tkrizek@isc.org>
Thu, 31 Aug 2023 11:18:17 +0000 (13:18 +0200)
committerTom Krizek <tkrizek@isc.org>
Wed, 20 Sep 2023 08:32:10 +0000 (10:32 +0200)
commit9d9f2dcda5433ffd6f721aaef546ca0170d456de
tree85bc33c4ca6238b5742d9b06ae94ab94872aa419
parentb86a41780a32ebc93cb6c8304431d611938e889e
Fix pytest module detection for run.sh

To allow concurrent invocations of pytest, it is necessary to assign
ports properly to avoid conflicts. In order to do that, pytest needs to
know a complete list of all test modules.

When pytest is invoked from run.sh, the current working directory is the
system test directory. To properly detect other tests, the conftest.py
has to look in the bin/tests/system directory, rather than the current
working directory.

(cherry picked from commit d4502206a146b00ce1f8c1fad50a024d654b25f5)
bin/tests/system/conftest.py