From 96379e51edaa0bb85f2e89b42512634b87e20110 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 12 Jun 2020 20:17:45 +0200 Subject: [PATCH] tests: reset CMakeDependency.class_cmakeinfo --- run_project_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_project_tests.py b/run_project_tests.py index 5fc8aa2bbcd9..088241bda8b6 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -438,7 +438,10 @@ def validate_output(test: TestDef, stdo: str, stde: str) -> str: # coded to run as a batch process. def clear_internal_caches(): import mesonbuild.interpreterbase + from mesonbuild.dependencies import CMakeDependency + from mesonbuild.mesonlib import PerMachine mesonbuild.interpreterbase.FeatureNew.feature_registry = {} + CMakeDependency.class_cmakeinfo = PerMachine(None, None) def run_test_inprocess(testdir): old_stdout = sys.stdout