@@ -68,8 +68,8 @@ def __init__(self, total=0):
6868 total = yaml test scenarios * applicable platforms
6969 done := instances that reached report_out stage of the pipeline
7070 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
7373
7474 pass rate = passed / (total - filtered_configs)
7575 case pass rate = passed_cases / (cases - filtered_cases - skipped_cases)
@@ -95,11 +95,11 @@ def __init__(self, total=0):
9595
9696 # cmake filter + build skipped
9797 # updated by report_out()
98- self ._skipped_runtime = Value ('i' , 0 )
98+ self ._filtered_runtime = Value ('i' , 0 )
9999
100100 # static filtered at yaml parsing time
101101 # updated by update_counting_before_pipeline()
102- self ._skipped_filter = Value ('i' , 0 )
102+ self ._filtered_static = Value ('i' , 0 )
103103
104104 # updated by report_out() in pipeline
105105 self ._error = Value ('i' , 0 )
@@ -145,7 +145,7 @@ def _find_number_length(n):
145145
146146 def summary (self ):
147147 selected_cases = self .cases - self .filtered_cases
148- completed_configs = self .done - self .skipped_filter
148+ completed_configs = self .done - self .filtered_static
149149
150150 # Find alignment length for aesthetic printing
151151 suites_n_length = self ._find_number_length (self .total if self .total > self .done else self .done )
@@ -158,17 +158,17 @@ def summary(self):
158158 print ("--------------------------------------------------" )
159159 print (f"{ 'Total test suites: ' :<23} { self .total :>{suites_n_length }} " ) # actually test instances
160160 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 }} " )
162162 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 }} " )
164164 print (f" ├─ { 'Passed test suites: ' :<37} { self .passed :>{completed_suites_n_length }} " )
165165 print (f" ├─ { 'Built only test suites: ' :<37} { self .notrun :>{completed_suites_n_length }} " )
166166 print (f" ├─ { 'Failed test suites: ' :<37} { self .failed :>{completed_suites_n_length }} " )
167167 print (f" └─ { 'Errors in test suites: ' :<37} { self .error :>{completed_suites_n_length }} " )
168168 print (f"" )
169169 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 }} " )
172172 print ("---------------------- ----------------------" )
173173 print (f"{ 'Total test cases: ' :<18} { self .cases } " )
174174 print (f"├─ { 'Filtered test cases: ' :<21} { self .filtered_cases :>{total_cases_n_length }} " )
@@ -426,32 +426,32 @@ def filtered_configs_increment(self, value=1):
426426 self ._filtered_configs .value += value
427427
428428 @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
432432
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
437437
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
441441
442442 @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
446446
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
451451
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
455455
456456 @property
457457 def failed (self ):
@@ -924,7 +924,7 @@ def process(self, pipeline, done, message, lock, results):
924924 logger .debug ("filtering %s" % self .instance .name )
925925 self .instance .status = TwisterStatus .FILTER
926926 self .instance .reason = "runtime filter"
927- results .skipped_runtime_increment ()
927+ results .filtered_runtime_increment ()
928928 self .instance .add_missing_case_status (TwisterStatus .FILTER )
929929 next_op = 'report'
930930 else :
@@ -951,7 +951,7 @@ def process(self, pipeline, done, message, lock, results):
951951 # Count skipped cases during build, for example
952952 # due to ram/rom overflow.
953953 if self .instance .status == TwisterStatus .SKIP :
954- results .skipped_runtime_increment ()
954+ results .filtered_runtime_increment ()
955955 self .instance .add_missing_case_status (TwisterStatus .SKIP , self .instance .reason )
956956
957957 if ret .get ('returncode' , 1 ) > 0 :
@@ -1353,7 +1353,7 @@ def _add_instance_testcases_to_status_counts(instance, results, decrement=False)
13531353
13541354
13551355 def report_out (self , results ):
1356- total_to_do = results .total - results .skipped_filter
1356+ total_to_do = results .total - results .filtered_static
13571357 total_tests_width = len (str (total_to_do ))
13581358 results .done_increment ()
13591359 instance = self .instance
@@ -1413,7 +1413,7 @@ def report_out(self, results):
14131413 and self .instance .handler .seed is not None ):
14141414 more_info += "/seed: " + str (self .options .seed )
14151415 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 ,
14171417 instance .testsuite .name , status , more_info ))
14181418
14191419 if self .options .verbose > 1 :
@@ -1428,11 +1428,11 @@ def report_out(self, results):
14281428 else :
14291429 completed_perc = 0
14301430 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 )
14321432
14331433 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 " % (
14341434 TwisterStatus .get_color (TwisterStatus .PASS ),
1435- results .done - results .skipped_filter ,
1435+ results .done - results .filtered_static ,
14361436 total_to_do ,
14371437 Fore .RESET ,
14381438 completed_perc ,
@@ -1663,7 +1663,7 @@ def run(self):
16631663 self .results .error = 0
16641664 self .results .done -= self .results .error
16651665 else :
1666- self .results .done = self .results .skipped_filter
1666+ self .results .done = self .results .filtered_static
16671667
16681668 self .execute (pipeline , done_queue )
16691669
@@ -1698,7 +1698,7 @@ def update_counting_before_pipeline(self):
16981698 '''
16991699 for instance in self .instances .values ():
17001700 if instance .status == TwisterStatus .FILTER and not instance .reason == 'runtime filter' :
1701- self .results .skipped_filter_increment ()
1701+ self .results .filtered_static_increment ()
17021702 self .results .filtered_configs_increment ()
17031703 self .results .filtered_cases_increment (len (instance .testsuite .testcases ))
17041704 self .results .cases_increment (len (instance .testsuite .testcases ))
@@ -1710,8 +1710,8 @@ def show_brief(self):
17101710 "%d configurations filtered (%d by static filter, %d at runtime)." %
17111711 (len (self .suites ), len (self .instances ),
17121712 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 ))
17151715
17161716 def add_tasks_to_queue (self , pipeline , build_only = False , test_only = False , retry_build_errors = False ):
17171717 for instance in self .instances .values ():
0 commit comments