1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

framework/execution: Fix previous/next job

The next and previous job attribute implementations of context were
swapped.
This commit is contained in:
Marc Bonnici 2018-05-24 14:17:26 +01:00 committed by setrofim
parent d6e9e503fa
commit f13e3adf99

View File

@ -39,16 +39,16 @@ class ExecutionContext(object):
@property
def previous_job(self):
if not self.job_queue:
return None
return self.job_queue[0]
@property
def next_job(self):
if not self.completed_jobs:
return None
return self.completed_jobs[-1]
@property
def next_job(self):
if not self.job_queue:
return None
return self.job_queue[0]
@property
def spec_changed(self):
if self.previous_job is None and self.current_job is not None: # Start of run