File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -214,20 +214,18 @@ def run(self, job):
214
214
self .active_test = method_name
215
215
test_method = getattr (self , method_name )
216
216
test_method ()
217
+ job .data = self ._results
217
218
if self .failed :
218
219
self .logger .warning ("Report failed" )
219
- job .status = JobStatusChoices .STATUS_FAILED
220
+ job .terminate ( status = JobStatusChoices .STATUS_FAILED )
220
221
else :
221
222
self .logger .info ("Report completed successfully" )
222
- job .status = JobStatusChoices . STATUS_COMPLETED
223
+ job .terminate ()
223
224
except Exception as e :
224
225
stacktrace = traceback .format_exc ()
225
226
self .log_failure (None , f"An exception occurred: { type (e ).__name__ } : { e } <pre>{ stacktrace } </pre>" )
226
227
logger .error (f"Exception raised during report execution: { e } " )
227
228
job .terminate (status = JobStatusChoices .STATUS_ERRORED )
228
- finally :
229
- job .data = self ._results
230
- job .terminate ()
231
229
232
230
# Perform any post-run tasks
233
231
self .post_run ()
You can’t perform that action at this time.
0 commit comments