@@ -67,11 +67,11 @@ def __init__(self, total=0):
67
67
68
68
total = yaml test scenarios * applicable platforms
69
69
done := instances that reached report_out stage of the pipeline
70
- done = skipped_configs + passed + failed + error
70
+ done = filtered_configs + passed + failed + error
71
71
completed = done - skipped_filter
72
- skipped_configs = skipped_runtime + skipped_filter
72
+ filtered_configs = skipped_runtime + skipped_filter
73
73
74
- pass rate = passed / (total - skipped_configs )
74
+ pass rate = passed / (total - filtered_configs )
75
75
case pass rate = passed_cases / (cases - filtered_cases - skipped_cases)
76
76
'''
77
77
# instances that go through the pipeline
@@ -91,7 +91,7 @@ def __init__(self, total=0):
91
91
92
92
# static filter + runtime filter + build skipped
93
93
# updated by update_counting_before_pipeline() and report_out()
94
- self ._skipped_configs = Value ('i' , 0 )
94
+ self ._filtered_configs = Value ('i' , 0 )
95
95
96
96
# cmake filter + build skipped
97
97
# updated by report_out()
@@ -151,22 +151,22 @@ def summary(self):
151
151
suites_n_length = self ._find_number_length (self .total if self .total > self .done else self .done )
152
152
processed_suites_n_length = self ._find_number_length (self .done )
153
153
completed_suites_n_length = self ._find_number_length (completed_configs )
154
- skipped_suites_n_length = self ._find_number_length (self .skipped_configs )
154
+ skipped_suites_n_length = self ._find_number_length (self .filtered_configs )
155
155
total_cases_n_length = self ._find_number_length (self .cases )
156
156
selected_cases_n_length = self ._find_number_length (selected_cases )
157
157
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
161
print (f"├─ { 'Filtered test suites (static): ' :<37} { self .skipped_filter :>{processed_suites_n_length }} " )
162
- print (f"└─ { 'Completed test suites: ' :<37} { completed_configs :>{processed_suites_n_length }} " )
163
- print (f" ├─ { 'Filtered test suites (at runtime) : ' :<37} { self .skipped_runtime :>{completed_suites_n_length }} " )
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 }} " )
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
- print (f"{ 'Filtered test suites: ' :<21} { self .skipped_configs } " )
169
+ print (f"{ 'Filtered test suites: ' :<21} { self .filtered_configs } " )
170
170
print (f"├─ { 'Filtered test suites (static): ' :<37} { self .skipped_filter :>{skipped_suites_n_length }} " )
171
171
print (f"└─ { 'Filtered test suites (at runtime): ' :<37} { self .skipped_runtime :>{skipped_suites_n_length }} " )
172
172
print ("---------------------- ----------------------" )
@@ -412,18 +412,18 @@ def notrun_increment(self, value=1):
412
412
self ._notrun .value += value
413
413
414
414
@property
415
- def skipped_configs (self ):
416
- with self ._skipped_configs .get_lock ():
417
- return self ._skipped_configs .value
415
+ def filtered_configs (self ):
416
+ with self ._filtered_configs .get_lock ():
417
+ return self ._filtered_configs .value
418
418
419
- @skipped_configs .setter
420
- def skipped_configs (self , value ):
421
- with self ._skipped_configs .get_lock ():
422
- self ._skipped_configs .value = value
419
+ @filtered_configs .setter
420
+ def filtered_configs (self , value ):
421
+ with self ._filtered_configs .get_lock ():
422
+ self ._filtered_configs .value = value
423
423
424
- def skipped_configs_increment (self , value = 1 ):
425
- with self ._skipped_configs .get_lock ():
426
- self ._skipped_configs .value += value
424
+ def filtered_configs_increment (self , value = 1 ):
425
+ with self ._filtered_configs .get_lock ():
426
+ self ._filtered_configs .value += value
427
427
428
428
@property
429
429
def skipped_filter (self ):
@@ -1381,9 +1381,9 @@ def report_out(self, results):
1381
1381
if not self .options .verbose :
1382
1382
self .log_info_file (self .options .inline_logs )
1383
1383
elif instance .status == TwisterStatus .SKIP :
1384
- results .skipped_configs_increment ()
1384
+ results .filtered_configs_increment ()
1385
1385
elif instance .status == TwisterStatus .FILTER :
1386
- results .skipped_configs_increment ()
1386
+ results .filtered_configs_increment ()
1387
1387
elif instance .status == TwisterStatus .PASS :
1388
1388
results .passed_increment ()
1389
1389
elif instance .status == TwisterStatus .NOTRUN :
@@ -1439,8 +1439,8 @@ def report_out(self, results):
1439
1439
TwisterStatus .get_color (TwisterStatus .NOTRUN ),
1440
1440
results .notrun ,
1441
1441
Fore .RESET ,
1442
- TwisterStatus .get_color (TwisterStatus .SKIP ) if results .skipped_configs > 0 else Fore .RESET ,
1443
- results .skipped_configs ,
1442
+ TwisterStatus .get_color (TwisterStatus .SKIP ) if results .filtered_configs > 0 else Fore .RESET ,
1443
+ results .filtered_configs ,
1444
1444
Fore .RESET ,
1445
1445
TwisterStatus .get_color (TwisterStatus .FAIL ) if results .failed > 0 else Fore .RESET ,
1446
1446
results .failed ,
@@ -1699,7 +1699,7 @@ def update_counting_before_pipeline(self):
1699
1699
for instance in self .instances .values ():
1700
1700
if instance .status == TwisterStatus .FILTER and not instance .reason == 'runtime filter' :
1701
1701
self .results .skipped_filter_increment ()
1702
- self .results .skipped_configs_increment ()
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 ))
1705
1705
elif instance .status == TwisterStatus .ERROR :
@@ -1709,9 +1709,9 @@ def show_brief(self):
1709
1709
logger .info ("%d test scenarios (%d configurations) selected, "
1710
1710
"%d configurations filtered (%d by static filter, %d at runtime)." %
1711
1711
(len (self .suites ), len (self .instances ),
1712
- self .results .skipped_configs ,
1712
+ self .results .filtered_configs ,
1713
1713
self .results .skipped_filter ,
1714
- self .results .skipped_configs - self .results .skipped_filter ))
1714
+ self .results .filtered_configs - self .results .skipped_filter ))
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