Changeset 2f4118f in rtems-central


Ignore:
Timestamp:
11/25/21 06:42:48 (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4d7f331
Parents:
cef12a3
git-author:
Sebastian Huber <sebastian.huber@…> (11/25/21 06:42:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/25/21 06:43:59)
Message:

specview.py: Fix validation traversal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • specview.py

    rcef12a3 r2f4118f  
    192192
    193193def _validate(item: Item, enabled: List[str]) -> bool:
    194     if not item.is_enabled(enabled):
    195         return True
    196194    count = _validation_count(item, enabled)
    197195    validated = True
    198196    for child in item.children(_CHILD_ROLES):
    199         validated = _validate(child, enabled) and validated
    200         count += 1
     197        if child.is_enabled(enabled):
     198            validated = _validate(child, enabled) and validated
     199            count += 1
    201200    for parent in item.parents(_PARENT_ROLES):
    202         validated = _validate(parent, enabled) and validated
    203         count += 1
     201        if parent.is_enabled(enabled):
     202            validated = _validate(parent, enabled) and validated
     203            count += 1
    204204    pre_qualified = _is_pre_qualified(item)
    205205    item["_pre_qualified"] = pre_qualified
Note: See TracChangeset for help on using the changeset viewer.