1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

Added job_status property to ExecutionContext

This commit is contained in:
Sergei Trofimov 2015-06-10 15:01:02 +01:00
parent b31a9bd61a
commit 32f3dc21e4

View File

@ -123,6 +123,12 @@ class ExecutionContext(object):
else:
return None
@property
def job_status(self):
if not self.current_job:
return None
return self.current_job.result.status
@property
def workload(self):
return getattr(self.spec, 'workload', None)