[9.18] fix: test: Fix the .hypothesis directory to bin/tests/system/.hypothesis

Previously the location of the .hypothesis directory would depend on the
current working directory when running pytest.

Set the HYPOTHESIS_STORAGE_DIRECTORY explicitly.

Closes #5424

Backport of MR !10825

Merge branch 'backport-5424-hypothesis-artifacts-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!10829
This commit is contained in:
Štěpán Balážik 2025-08-06 12:40:39 +00:00
commit 354fceac2c

View file

@ -315,6 +315,9 @@ def env(ports):
env[portname] = str(portnum)
env["builddir"] = f"{env['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}"
env["srcdir"] = f"{env['TOP_SRCDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}"
env["HYPOTHESIS_STORAGE_DIRECTORY"] = (
f"{env['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}/.hypothesis"
)
return env