]> 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>
Wed, 6 Aug 2025 12:07:44 +0000 (14:07 +0200)
Previously the location of the .hypothesis directory would depend on the
current working directory when running pytest.

Set the HYPOTHESIS_STORAGE_DIRECTORY explicitly.

(cherry picked from commit a4e74ab8cd51a514424aa01fa96344f0f9f918c2)

bin/tests/system/conftest.py

index 721fde1ba7153518f6484499552b0e516f1b0316..1259cc8babdb633f4e667923ed2ea24de54a442e 100644 (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