summaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@quansight.com>2025-09-04 15:26:33 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-09-19 08:34:34 -0700
commit5f3d12abc814b9ea99e56ea31b79a4cb3e8411fc (patch)
tree1ab509bb414306a5a3233a4a1e793a7b6bc00d46 /run_tests.py
parent8bba5d0a80ece5c14f5e56468dcf50752fe5d46d (diff)
downloadmeson-5f3d12abc814b9ea99e56ea31b79a4cb3e8411fc.tar.gz
pkgconfig: Fix class cached to be keyed on extra_paths
Add `extra_paths` to cache keys for `PkgConfigInterface` and `PkgConfigCLI` instances, to avoid incorrectly reusing an instance with a different `extra_paths` value, see: https://github.com/mesonbuild/meson/pull/14657#discussion_r2320623799 Signed-off-by: Michał Górny <mgorny@quansight.com>
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 6ca84f07f..ed224f817 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -289,7 +289,7 @@ def run_mtest_inprocess(commandlist: T.List[str]) -> T.Tuple[int, str]:
def clear_meson_configure_class_caches() -> None:
CCompiler.find_library_cache.clear()
CCompiler.find_framework_cache.clear()
- PkgConfigInterface.class_impl.assign(False, False)
+ PkgConfigInterface.class_impl.assign({}, {})
mesonlib.project_meson_versions.clear()
def run_configure_inprocess(commandlist: T.List[str], env: T.Optional[T.Dict[str, str]] = None, catch_exception: bool = False) -> T.Tuple[int, str, str]: