From fbb81d6e6c30d6281e9f3b8a74c3cda41928f81c Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 23 Dec 2022 23:01:12 +0100 Subject: Updated to pyVHDLModel v0.18.0. --- testsuite/pyunit/dom/Sanity.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testsuite/pyunit/dom/Sanity.py') diff --git a/testsuite/pyunit/dom/Sanity.py b/testsuite/pyunit/dom/Sanity.py index ff5151fb3..54cb4103b 100644 --- a/testsuite/pyunit/dom/Sanity.py +++ b/testsuite/pyunit/dom/Sanity.py @@ -50,10 +50,11 @@ _SANITY_TESTS_ROOT = _TESTSUITE_ROOT / "sanity" design = Design() -@mark.parametrize("file", [str(f.relative_to(_TESTSUITE_ROOT)) for f in _SANITY_TESTS_ROOT.glob("**/*.vhdl")]) -def test_AllVHDLSources(file): +@mark.parametrize("parameters", [f"{i}:{f.relative_to(_TESTSUITE_ROOT)}" for i, f in enumerate(_SANITY_TESTS_ROOT.glob("**/*.vhdl"))]) +def test_AllVHDLSources(parameters): + id, file = parameters.split(":") filePath = _TESTSUITE_ROOT / file - lib = design.GetLibrary("sanity") + lib = design.GetLibrary(f"sanity_{id}") document = Document(filePath) design.AddDocument(document, lib) -- cgit v1.2.3