Skip to content

Commit 1647b46

Browse files
nashifmmahadevan108
authored andcommitted
twister: stats: remove double counting of statuses
We have been double counting some statuses, remove to get the stats right. Signed-off-by: Anas Nashif <[email protected]>
1 parent eddb0b7 commit 1647b46

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,6 @@ def process(self, pipeline, done, message, lock, results):
892892
logger.debug("filtering %s" % self.instance.name)
893893
self.instance.status = TwisterStatus.FILTER
894894
self.instance.reason = "runtime filter"
895-
results.filtered_cases_increment()
896895
self.instance.add_missing_case_status(TwisterStatus.FILTER)
897896
next_op = 'report'
898897
else:
@@ -1387,15 +1386,8 @@ def report_out(self, results):
13871386
results.skipped_configs_increment()
13881387
elif instance.status == TwisterStatus.PASS:
13891388
results.passed_increment()
1390-
for case in instance.testcases:
1391-
# test cases skipped at the test case level
1392-
if case.status == TwisterStatus.SKIP:
1393-
results.skipped_cases_increment()
13941389
elif instance.status == TwisterStatus.NOTRUN:
13951390
results.notrun_increment()
1396-
for case in instance.testcases:
1397-
if case.status == TwisterStatus.SKIP:
1398-
results.skipped_cases_increment()
13991391
else:
14001392
logger.debug(f"Unknown status = {instance.status}")
14011393
status = Fore.YELLOW + "UNKNOWN" + Fore.RESET

0 commit comments

Comments
 (0)