]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the .hypothesis directory to bin/tests/system/.hypothesis
authorŠtěpán Balážik <stepan@isc.org>
Tue, 5 Aug 2025 14:51:14 +0000 (16:51 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Tue, 5 Aug 2025 14:54:13 +0000 (16:54 +0200)
Previously the location of the .hypothesis directory would depend on the
current working directory when running pytest.

Set the HYPOTHESIS_STORAGE_DIRECTORY explicitly.

bin/tests/system/isctest/vars/dirs.py

index 1ec52b69f74c0761c64622976e38b06fa8ed395b..88e8a81c8cbc0d8ad2eb8f026089088b49563dde 100644 (file)
@@ -20,6 +20,7 @@ from .build import BUILD_VARS, SYSTEM_TEST_DIR_GIT_PATH  # type: ignore
 DIR_VARS = {
     "builddir": f"{BUILD_VARS['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
     "srcdir": f"{BUILD_VARS['TOP_SRCDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}",
+    "HYPOTHESIS_STORAGE_DIRECTORY": f"{BUILD_VARS['TOP_BUILDDIR']}/{SYSTEM_TEST_DIR_GIT_PATH}/.hypothesis",
     "SYSTESTDIR": None,
 }