[rtems-central commit] specview.py: Fix validation traversal
Sebastian Huber
sebh at rtems.org
Thu Nov 25 08:20:27 UTC 2021
Module: rtems-central
Branch: master
Commit: 2f4118f9d540bdf70e1e8edc7a5ac0359f6086cf
Changeset: http://git.rtems.org/rtems-central/commit/?id=2f4118f9d540bdf70e1e8edc7a5ac0359f6086cf
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Nov 25 07:42:48 2021 +0100
specview.py: Fix validation traversal
---
specview.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/specview.py b/specview.py
index 5c5813c..f976210 100755
--- a/specview.py
+++ b/specview.py
@@ -191,16 +191,16 @@ def _validation_count(item: Item, enabled: List[str]) -> int:
def _validate(item: Item, enabled: List[str]) -> bool:
- if not item.is_enabled(enabled):
- return True
count = _validation_count(item, enabled)
validated = True
for child in item.children(_CHILD_ROLES):
- validated = _validate(child, enabled) and validated
- count += 1
+ if child.is_enabled(enabled):
+ validated = _validate(child, enabled) and validated
+ count += 1
for parent in item.parents(_PARENT_ROLES):
- validated = _validate(parent, enabled) and validated
- count += 1
+ if parent.is_enabled(enabled):
+ validated = _validate(parent, enabled) and validated
+ count += 1
pre_qualified = _is_pre_qualified(item)
item["_pre_qualified"] = pre_qualified
if count == 0:
More information about the vc
mailing list