diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-25 13:37:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-03 10:22:45 +0200 |
commit | e9d1873b9a8b0173e36f453a0caef4ac9b1222c8 (patch) | |
tree | e3cfd987722ddbd6c6c001ada313173eb24c290c /rtemsqual/validation.py | |
parent | validation: Substitute code and text (diff) | |
download | rtems-central-e9d1873b9a8b0173e36f453a0caef4ac9b1222c8.tar.bz2 |
validation: Iterate over items without recursion
Diffstat (limited to 'rtemsqual/validation.py')
-rw-r--r-- | rtemsqual/validation.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rtemsqual/validation.py b/rtemsqual/validation.py index 6edf7993..34f90cd7 100644 --- a/rtemsqual/validation.py +++ b/rtemsqual/validation.py @@ -684,8 +684,6 @@ def _get_source_file(filename: str, def _gather_items(item: Item, source_files: Dict[str, _SourceFile], test_programs: List[_TestProgram]) -> None: - for child in item.children(): - _gather_items(child, source_files, test_programs) if item["type"] == "test-suite": src = _get_source_file(item["target"], source_files) src.add_test_suite(item) @@ -712,7 +710,7 @@ def generate(config: dict, item_cache: ItemCache) -> None: """ source_files = {} # type: Dict[str, _SourceFile] test_programs = [] # type: List[_TestProgram] - for item in item_cache.top_level.values(): + for item in item_cache.all.values(): _gather_items(item, source_files, test_programs) test_case_to_suites = {} # type: Dict[str, List[_TestItem]] |