@@ -68,8 +68,8 @@ def __init__(self, total=0):
68
68
total = yaml test scenarios * applicable platforms
69
69
done := instances that reached report_out stage of the pipeline
70
70
done = filtered_configs + passed + failed + error
71
- completed = done - skipped_filter
72
- filtered_configs = skipped_runtime + skipped_filter
71
+ completed = done - filtered_static
72
+ filtered_configs = filtered_runtime + filtered_static
73
73
74
74
pass rate = passed / (total - filtered_configs)
75
75
case pass rate = passed_cases / (cases - filtered_cases - skipped_cases)
@@ -95,11 +95,11 @@ def __init__(self, total=0):
95
95
96
96
# cmake filter + build skipped
97
97
# updated by report_out()
98
- self ._skipped_runtime = Value ('i' , 0 )
98
+ self ._filtered_runtime = Value ('i' , 0 )
99
99
100
100
# static filtered at yaml parsing time
101
101
# updated by update_counting_before_pipeline()
102
- self ._skipped_filter = Value ('i' , 0 )
102
+ self ._filtered_static = Value ('i' , 0 )
103
103
104
104
# updated by report_out() in pipeline
105
105
self ._error = Value ('i' , 0 )
@@ -145,7 +145,7 @@ def _find_number_length(n):
145
145
146
146
def summary (self ):
147
147
selected_cases = self .cases - self .filtered_cases
148
- completed_configs = self .done - self .skipped_filter
148
+ completed_configs = self .done - self .filtered_static
149
149
150
150
# Find alignment length for aesthetic printing
151
151
suites_n_length = self ._find_number_length (self .total if self .total > self .done else self .done )
@@ -158,17 +158,17 @@ def summary(self):
158
158
print ("--------------------------------------------------" )
159
159
print (f"{ 'Total test suites: ' :<23} { self .total :>{suites_n_length }} " ) # actually test instances
160
160
print (f"{ 'Processed test suites: ' :<23} { self .done :>{suites_n_length }} " )
161
- print (f"├─ { 'Filtered test suites (static): ' :<37} { self .skipped_filter :>{processed_suites_n_length }} " )
161
+ print (f"├─ { 'Filtered test suites (static): ' :<37} { self .filtered_static :>{processed_suites_n_length }} " )
162
162
print (f"└─ { 'Selected test suites: ' :<37} { completed_configs :>{processed_suites_n_length }} " )
163
- print (f" ├─ { 'Skipped test suites: ' :<37} { self .skipped_runtime :>{completed_suites_n_length }} " )
163
+ print (f" ├─ { 'Skipped test suites: ' :<37} { self .filtered_runtime :>{completed_suites_n_length }} " )
164
164
print (f" ├─ { 'Passed test suites: ' :<37} { self .passed :>{completed_suites_n_length }} " )
165
165
print (f" ├─ { 'Built only test suites: ' :<37} { self .notrun :>{completed_suites_n_length }} " )
166
166
print (f" ├─ { 'Failed test suites: ' :<37} { self .failed :>{completed_suites_n_length }} " )
167
167
print (f" └─ { 'Errors in test suites: ' :<37} { self .error :>{completed_suites_n_length }} " )
168
168
print (f"" )
169
169
print (f"{ 'Filtered test suites: ' :<21} { self .filtered_configs } " )
170
- print (f"├─ { 'Filtered test suites (static): ' :<37} { self .skipped_filter :>{skipped_suites_n_length }} " )
171
- print (f"└─ { 'Filtered test suites (at runtime): ' :<37} { self .skipped_runtime :>{skipped_suites_n_length }} " )
170
+ print (f"├─ { 'Filtered test suites (static): ' :<37} { self .filtered_static :>{skipped_suites_n_length }} " )
171
+ print (f"└─ { 'Filtered test suites (at runtime): ' :<37} { self .filtered_runtime :>{skipped_suites_n_length }} " )
172
172
print ("---------------------- ----------------------" )
173
173
print (f"{ 'Total test cases: ' :<18} { self .cases } " )
174
174
print (f"├─ { 'Filtered test cases: ' :<21} { self .filtered_cases :>{total_cases_n_length }} " )
@@ -426,32 +426,32 @@ def filtered_configs_increment(self, value=1):
426
426
self ._filtered_configs .value += value
427
427
428
428
@property
429
- def skipped_filter (self ):
430
- with self ._skipped_filter .get_lock ():
431
- return self ._skipped_filter .value
429
+ def filtered_static (self ):
430
+ with self ._filtered_static .get_lock ():
431
+ return self ._filtered_static .value
432
432
433
- @skipped_filter .setter
434
- def skipped_filter (self , value ):
435
- with self ._skipped_filter .get_lock ():
436
- self ._skipped_filter .value = value
433
+ @filtered_static .setter
434
+ def filtered_static (self , value ):
435
+ with self ._filtered_static .get_lock ():
436
+ self ._filtered_static .value = value
437
437
438
- def skipped_filter_increment (self , value = 1 ):
439
- with self ._skipped_filter .get_lock ():
440
- self ._skipped_filter .value += value
438
+ def filtered_static_increment (self , value = 1 ):
439
+ with self ._filtered_static .get_lock ():
440
+ self ._filtered_static .value += value
441
441
442
442
@property
443
- def skipped_runtime (self ):
444
- with self ._skipped_runtime .get_lock ():
445
- return self ._skipped_runtime .value
443
+ def filtered_runtime (self ):
444
+ with self ._filtered_runtime .get_lock ():
445
+ return self ._filtered_runtime .value
446
446
447
- @skipped_runtime .setter
448
- def skipped_runtime (self , value ):
449
- with self ._skipped_runtime .get_lock ():
450
- self ._skipped_runtime .value = value
447
+ @filtered_runtime .setter
448
+ def filtered_runtime (self , value ):
449
+ with self ._filtered_runtime .get_lock ():
450
+ self ._filtered_runtime .value = value
451
451
452
- def skipped_runtime_increment (self , value = 1 ):
453
- with self ._skipped_runtime .get_lock ():
454
- self ._skipped_runtime .value += value
452
+ def filtered_runtime_increment (self , value = 1 ):
453
+ with self ._filtered_runtime .get_lock ():
454
+ self ._filtered_runtime .value += value
455
455
456
456
@property
457
457
def failed (self ):
@@ -924,7 +924,7 @@ def process(self, pipeline, done, message, lock, results):
924
924
logger .debug ("filtering %s" % self .instance .name )
925
925
self .instance .status = TwisterStatus .FILTER
926
926
self .instance .reason = "runtime filter"
927
- results .skipped_runtime_increment ()
927
+ results .filtered_runtime_increment ()
928
928
self .instance .add_missing_case_status (TwisterStatus .FILTER )
929
929
next_op = 'report'
930
930
else :
@@ -951,7 +951,7 @@ def process(self, pipeline, done, message, lock, results):
951
951
# Count skipped cases during build, for example
952
952
# due to ram/rom overflow.
953
953
if self .instance .status == TwisterStatus .SKIP :
954
- results .skipped_runtime_increment ()
954
+ results .filtered_runtime_increment ()
955
955
self .instance .add_missing_case_status (TwisterStatus .SKIP , self .instance .reason )
956
956
957
957
if ret .get ('returncode' , 1 ) > 0 :
@@ -1353,7 +1353,7 @@ def _add_instance_testcases_to_status_counts(instance, results, decrement=False)
1353
1353
1354
1354
1355
1355
def report_out (self , results ):
1356
- total_to_do = results .total - results .skipped_filter
1356
+ total_to_do = results .total - results .filtered_static
1357
1357
total_tests_width = len (str (total_to_do ))
1358
1358
results .done_increment ()
1359
1359
instance = self .instance
@@ -1413,7 +1413,7 @@ def report_out(self, results):
1413
1413
and self .instance .handler .seed is not None ):
1414
1414
more_info += "/seed: " + str (self .options .seed )
1415
1415
logger .info ("{:>{}}/{} {:<25} {:<50} {} ({})" .format (
1416
- results .done - results .skipped_filter , total_tests_width , total_to_do , instance .platform .name ,
1416
+ results .done - results .filtered_static , total_tests_width , total_to_do , instance .platform .name ,
1417
1417
instance .testsuite .name , status , more_info ))
1418
1418
1419
1419
if self .options .verbose > 1 :
@@ -1428,11 +1428,11 @@ def report_out(self, results):
1428
1428
else :
1429
1429
completed_perc = 0
1430
1430
if total_to_do > 0 :
1431
- completed_perc = int ((float (results .done - results .skipped_filter ) / total_to_do ) * 100 )
1431
+ completed_perc = int ((float (results .done - results .filtered_static ) / total_to_do ) * 100 )
1432
1432
1433
1433
sys .stdout .write ("INFO - Total complete: %s%4d/%4d%s %2d%% built (not run): %s%4d%s, filtered: %s%4d%s, failed: %s%4d%s, error: %s%4d%s\r " % (
1434
1434
TwisterStatus .get_color (TwisterStatus .PASS ),
1435
- results .done - results .skipped_filter ,
1435
+ results .done - results .filtered_static ,
1436
1436
total_to_do ,
1437
1437
Fore .RESET ,
1438
1438
completed_perc ,
@@ -1663,7 +1663,7 @@ def run(self):
1663
1663
self .results .error = 0
1664
1664
self .results .done -= self .results .error
1665
1665
else :
1666
- self .results .done = self .results .skipped_filter
1666
+ self .results .done = self .results .filtered_static
1667
1667
1668
1668
self .execute (pipeline , done_queue )
1669
1669
@@ -1698,7 +1698,7 @@ def update_counting_before_pipeline(self):
1698
1698
'''
1699
1699
for instance in self .instances .values ():
1700
1700
if instance .status == TwisterStatus .FILTER and not instance .reason == 'runtime filter' :
1701
- self .results .skipped_filter_increment ()
1701
+ self .results .filtered_static_increment ()
1702
1702
self .results .filtered_configs_increment ()
1703
1703
self .results .filtered_cases_increment (len (instance .testsuite .testcases ))
1704
1704
self .results .cases_increment (len (instance .testsuite .testcases ))
@@ -1710,8 +1710,8 @@ def show_brief(self):
1710
1710
"%d configurations filtered (%d by static filter, %d at runtime)." %
1711
1711
(len (self .suites ), len (self .instances ),
1712
1712
self .results .filtered_configs ,
1713
- self .results .skipped_filter ,
1714
- self .results .filtered_configs - self .results .skipped_filter ))
1713
+ self .results .filtered_static ,
1714
+ self .results .filtered_configs - self .results .filtered_static ))
1715
1715
1716
1716
def add_tasks_to_queue (self , pipeline , build_only = False , test_only = False , retry_build_errors = False ):
1717
1717
for instance in self .instances .values ():
0 commit comments