Skip to content

Commit

Permalink
tests: reset CMakeDependency.class_cmakeinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda authored and nirbheek committed Jun 13, 2020
1 parent edcddb3 commit 96379e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run_project_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96379e5

Please sign in to comment.