mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-07 05:31:21 +00:00
fw/execution: Fix status being assigned as strings
This commit is contained in:
parent
0fb8d261fa
commit
0113940c85
@ -376,12 +376,12 @@ class Executor(object):
|
|||||||
try:
|
try:
|
||||||
self.do_execute(context)
|
self.do_execute(context)
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
context.run_output.status = 'ABORTED'
|
context.run_output.status = Status.ABORTED
|
||||||
log.log_error(e, self.logger)
|
log.log_error(e, self.logger)
|
||||||
context.write_output()
|
context.write_output()
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
context.run_output.status = 'FAILED'
|
context.run_output.status = Status.FAILED
|
||||||
log.log_error(e, self.logger)
|
log.log_error(e, self.logger)
|
||||||
context.write_output()
|
context.write_output()
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user