mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 19:39:58 -04:00
chg: test: Check for FEATURETEST before running pytest
When compiling with meson, it may be easy to forget to compile system test dependencies before running the tests. In that case, the test results would be quite incosistent and unpredictable, with some tests ending up with ERROR, some with FAILURE and others PASS, without a clear indication that something is off before running the entire machinery. Add a check to fail early on if the FEATURETEST binary isn't available, indicating that system test dependencies were most likely not compiled. Merge branch 'nicki/system-test-check-featuretest' into 'main' See merge request isc-projects/bind9!10715
This commit is contained in:
commit
b7c3a1f3b0
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ SYMLINK_REPLACEMENT_RE = re.compile(r"/tests(_.*)\.py")
|
|||
|
||||
isctest.check.is_executable(isctest.vars.ALL["PYTHON"], "Python interpreter required")
|
||||
isctest.check.is_executable(isctest.vars.ALL["PERL"], "Perl interpreter required")
|
||||
isctest.check.is_executable(
|
||||
isctest.vars.ALL["FEATURETEST"],
|
||||
"Run this first: ninja -C build system-test-dependencies",
|
||||
)
|
||||
|
||||
# --------------------------- pytest hooks -------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue