mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-20 09:40:50 +01:00
framework/execution: Fix previous/next job
The next and previous job attribute implementations of context were swapped.
This commit is contained in:
parent
d6e9e503fa
commit
f13e3adf99
@ -39,16 +39,16 @@ class ExecutionContext(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def previous_job(self):
|
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:
|
if not self.completed_jobs:
|
||||||
return None
|
return None
|
||||||
return self.completed_jobs[-1]
|
return self.completed_jobs[-1]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def next_job(self):
|
||||||
|
if not self.job_queue:
|
||||||
|
return None
|
||||||
|
return self.job_queue[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def spec_changed(self):
|
def spec_changed(self):
|
||||||
if self.previous_job is None and self.current_job is not None: # Start of run
|
if self.previous_job is None and self.current_job is not None: # Start of run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user