diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-06-19 21:06:11 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-06-19 21:06:11 +0200 |
commit | 24f4de4220f3635afc8c4334c5805e874329e396 (patch) | |
tree | 1ef1300c8e6e1cc82bdb781db47958e2a39ba65a /testsuite/pyunit | |
parent | 2387eff54cb72997fb9afd30a2ea0754264deb3b (diff) | |
download | ghdl-24f4de4220f3635afc8c4334c5805e874329e396.tar.gz ghdl-24f4de4220f3635afc8c4334c5805e874329e396.tar.bz2 ghdl-24f4de4220f3635afc8c4334c5805e874329e396.zip |
Made paths relative, so it can be launched from testsuits directory too.
Diffstat (limited to 'testsuite/pyunit')
-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) |