Closed jashanka closed 9 years ago
Hi,
While running a test, if we hit the stop button it's being marked as fail (instead of abort).
Seems here is the problem, twister/client/executionprocess/ExecutionProcess.py
1203 except (Exception, SystemExit): 1204 # On error, print the error message, but don't exit 1205 print('\nTest case exception:') 1206 print(traceback.format_exc()[34:].strip()) 1207 print('\n>>> File {} execution CRASHED. <<<\n'.format(filename)) 1208 1209 proxy().echo('ERROR Error executing file {}!'.format(filename)) 1210 try: 1211 proxy().set_file_status(self.epName, file_id, STATUS_FAIL, (time.time() - timer_i)) 1212 except Exception: 1213 trace = traceback.format_exc()[34:].strip() 1214 print('Exception on change file status {}!\n'.format(trace))
{}
In the above try block, status should be 'STATUS_ABORTED', could you please check?
Thanks, Jai
Closing for now, will re-open later with more info.
Hi,
Seems here is the problem, twister/client/executionprocess/ExecutionProcess.py
1203 except (Exception, SystemExit): 1204 # On error, print the error message, but don't exit 1205 print('\nTest case exception:') 1206 print(traceback.format_exc()[34:].strip()) 1207 print('\n>>> File
{}
execution CRASHED. <<<\n'.format(filename)) 1208 1209 proxy().echo('ERROR Error executing file{}
!'.format(filename)) 1210 try: 1211 proxy().set_file_status(self.epName, file_id, STATUS_FAIL, (time.time() - timer_i)) 1212 except Exception: 1213 trace = traceback.format_exc()[34:].strip() 1214 print('Exception on change file status{}
!\n'.format(trace))In the above try block, status should be 'STATUS_ABORTED', could you please check?
Thanks, Jai