@@ -129,6 +129,7 @@ def __init__(self, total=0):
129129 self ._none_cases = Value ('i' , 0 )
130130 self ._started_cases = Value ('i' , 0 )
131131
132+ self ._warnings = Value ('i' , 0 )
132133
133134 self .lock = Lock ()
134135
@@ -186,6 +187,20 @@ def summary(self):
186187 print (f" └─ { 'Test cases only started: ' :<25} { self .started_cases :>{executed_cases_n_length }} " )
187188 print ("--------------------------------------------------" )
188189
190+ @property
191+ def warnings (self ):
192+ with self ._warnings .get_lock ():
193+ return self ._warnings .value
194+
195+ @warnings .setter
196+ def warnings (self , value ):
197+ with self ._warnings .get_lock ():
198+ self ._warnings .value = value
199+
200+ def warnings_increment (self , value = 1 ):
201+ with self ._warnings .get_lock ():
202+ self ._warnings .value += value
203+
189204 @property
190205 def cases (self ):
191206 with self ._cases .get_lock ():
@@ -1324,15 +1339,18 @@ def _add_instance_testcases_to_status_counts(instance, results, decrement=False)
13241339 # but having those statuses in this part of processing is an error.
13251340 case TwisterStatus .NONE :
13261341 results .none_cases_increment (increment_value )
1327- logger .error (f'A None status detected in instance { instance .name } ,'
1342+ logger .warning (f'A None status detected in instance { instance .name } ,'
13281343 f' test case { tc .name } .' )
1344+ results .warnings_increment (1 )
13291345 case TwisterStatus .STARTED :
13301346 results .started_cases_increment (increment_value )
1331- logger .error (f'A started status detected in instance { instance .name } ,'
1347+ logger .warning (f'A started status detected in instance { instance .name } ,'
13321348 f' test case { tc .name } .' )
1349+ results .warnings_increment (1 )
13331350 case _:
1334- logger .error (f'An unknown status "{ tc .status } " detected in instance { instance .name } ,'
1351+ logger .warning (f'An unknown status "{ tc .status } " detected in instance { instance .name } ,'
13351352 f' test case { tc .name } .' )
1353+ results .warnings_increment (1 )
13361354
13371355
13381356 def report_out (self , results ):
0 commit comments