From a82ab27989ca89ebd50480a568727f2104e45096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Tue, 5 Aug 2025 16:51:14 +0200 Subject: [PATCH] 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. (cherry picked from commit a4e74ab8cd51a514424aa01fa96344f0f9f918c2) --- bin/tests/system/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 721fde1ba7..1259cc8bab 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -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