@@ -104,6 +104,7 @@ def __init__(self, total=0):
104
104
# updated by report_out() in pipeline
105
105
self ._error = Value ('i' , 0 )
106
106
self ._failed = Value ('i' , 0 )
107
+ self ._skipped = Value ('i' , 0 )
107
108
108
109
# initialized to number of test instances
109
110
self ._total = Value ('i' , total )
@@ -145,30 +146,27 @@ def _find_number_length(n):
145
146
146
147
def summary (self ):
147
148
selected_cases = self .cases - self .filtered_cases
148
- completed_configs = self .done - self .filtered_static
149
+ completed_configs = self .done - self .filtered_static - self . filtered_runtime
149
150
150
151
# Find alignment length for aesthetic printing
151
152
suites_n_length = self ._find_number_length (self .total if self .total > self .done else self .done )
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 .filtered_configs )
154
+ filtered_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
- print (f"├─ { 'Filtered test suites (static): ' :<37} { self .filtered_static :>{processed_suites_n_length }} " )
162
- print (f"└─ { 'Selected test suites: ' :<37} { completed_configs :>{processed_suites_n_length }} " )
163
- print (f" ├─ { 'Skipped test suites: ' :<37} { self .filtered_runtime :>{completed_suites_n_length }} " )
161
+ print (f"└─{ 'Filtered test suites: ' :<21} { self .filtered_configs } " )
162
+ print (f" ├─ { 'Filtered test suites (static): ' :<37} { self .filtered_static :>{filtered_suites_n_length }} " )
163
+ print (f" └─ { 'Filtered test suites (at runtime): ' :<37} { self .filtered_runtime :>{filtered_suites_n_length }} " )
164
+ print (f"└─ { 'Selected test suites: ' :<37} { completed_configs :>{completed_suites_n_length }} " )
165
+ print (f" ├─ { 'Skipped test suites: ' :<37} { self .skipped :>{completed_suites_n_length }} " )
164
166
print (f" ├─ { 'Passed test suites: ' :<37} { self .passed :>{completed_suites_n_length }} " )
165
167
print (f" ├─ { 'Built only test suites: ' :<37} { self .notrun :>{completed_suites_n_length }} " )
166
168
print (f" ├─ { 'Failed test suites: ' :<37} { self .failed :>{completed_suites_n_length }} " )
167
169
print (f" └─ { 'Errors in test suites: ' :<37} { self .error :>{completed_suites_n_length }} " )
168
- print (f"" )
169
- print (f"{ 'Filtered test suites: ' :<21} { self .filtered_configs } " )
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
170
print ("---------------------- ----------------------" )
173
171
print (f"{ 'Total test cases: ' :<18} { self .cases } " )
174
172
print (f"├─ { 'Filtered test cases: ' :<21} { self .filtered_cases :>{total_cases_n_length }} " )
@@ -341,6 +339,20 @@ def started_cases_increment(self, value=1):
341
339
with self ._started_cases .get_lock ():
342
340
self ._started_cases .value += value
343
341
342
+ @property
343
+ def skipped (self ):
344
+ with self ._skipped .get_lock ():
345
+ return self ._skipped .value
346
+
347
+ @skipped .setter
348
+ def skipped (self , value ):
349
+ with self ._skipped .get_lock ():
350
+ self ._skipped .value = value
351
+
352
+ def skipped_increment (self , value = 1 ):
353
+ with self ._skipped .get_lock ():
354
+ self ._skipped .value += value
355
+
344
356
@property
345
357
def error (self ):
346
358
with self ._error .get_lock ():
@@ -892,6 +904,7 @@ def process(self, pipeline, done, message, lock, results):
892
904
logger .debug ("filtering %s" % self .instance .name )
893
905
self .instance .status = TwisterStatus .FILTER
894
906
self .instance .reason = "runtime filter"
907
+ results .filtered_runtime_increment ()
895
908
self .instance .add_missing_case_status (TwisterStatus .FILTER )
896
909
next_op = 'report'
897
910
else :
@@ -951,7 +964,7 @@ def process(self, pipeline, done, message, lock, results):
951
964
# Count skipped cases during build, for example
952
965
# due to ram/rom overflow.
953
966
if self .instance .status == TwisterStatus .SKIP :
954
- results .filtered_runtime_increment ()
967
+ results .skipped_increment ()
955
968
self .instance .add_missing_case_status (TwisterStatus .SKIP , self .instance .reason )
956
969
957
970
if ret .get ('returncode' , 1 ) > 0 :
@@ -1381,7 +1394,7 @@ def report_out(self, results):
1381
1394
if not self .options .verbose :
1382
1395
self .log_info_file (self .options .inline_logs )
1383
1396
elif instance .status == TwisterStatus .SKIP :
1384
- results .filtered_configs_increment ()
1397
+ results .skipped_increment ()
1385
1398
elif instance .status == TwisterStatus .FILTER :
1386
1399
results .filtered_configs_increment ()
1387
1400
elif instance .status == TwisterStatus .PASS :
0 commit comments