diff options
-rw-r--r-- | testsuite/pyunit/dom/Sanity.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuite/pyunit/dom/Sanity.py b/testsuite/pyunit/dom/Sanity.py index 5e932322d..ff5151fb3 100644 --- a/testsuite/pyunit/dom/Sanity.py +++ b/testsuite/pyunit/dom/Sanity.py @@ -44,14 +44,16 @@ if __name__ == "__main__": _TESTSUITE_ROOT = Path(__file__).parent.parent.parent.resolve() -_GHDL_ROOT = _TESTSUITE_ROOT.parent +_SANITY_TESTS_ROOT = _TESTSUITE_ROOT / "sanity" design = Design() -@mark.parametrize("file", [str(f.relative_to(_GHDL_ROOT)) for f in _TESTSUITE_ROOT.glob("sanity/**/*.vhdl")]) +@mark.parametrize("file", [str(f.relative_to(_TESTSUITE_ROOT)) for f in _SANITY_TESTS_ROOT.glob("**/*.vhdl")]) def test_AllVHDLSources(file): + filePath = _TESTSUITE_ROOT / file + lib = design.GetLibrary("sanity") - document = Document(Path(file)) + document = Document(filePath) design.AddDocument(document, lib) |