mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
fw/job: add missing log indents
Add "with indentcontext():" to Job stages that were missing them.
This commit is contained in:
parent
a32e7e7bc7
commit
23946620d6
@ -108,21 +108,24 @@ class Job(object):
|
||||
|
||||
def configure_target(self, context):
|
||||
self.logger.info('Configuring target for job {}'.format(self))
|
||||
context.tm.commit_runtime_parameters(self.spec.runtime_parameters)
|
||||
with indentcontext():
|
||||
context.tm.commit_runtime_parameters(self.spec.runtime_parameters)
|
||||
|
||||
def setup(self, context):
|
||||
self.logger.info('Setting up job {}'.format(self))
|
||||
with signal.wrap('WORKLOAD_SETUP', self, context):
|
||||
self.workload.setup(context)
|
||||
with indentcontext():
|
||||
with signal.wrap('WORKLOAD_SETUP', self, context):
|
||||
self.workload.setup(context)
|
||||
|
||||
def run(self, context):
|
||||
self.logger.info('Running job {}'.format(self))
|
||||
with signal.wrap('WORKLOAD_EXECUTION', self, context):
|
||||
start_time = datetime.utcnow()
|
||||
try:
|
||||
self.workload.run(context)
|
||||
finally:
|
||||
self.run_time = datetime.utcnow() - start_time
|
||||
with indentcontext():
|
||||
with signal.wrap('WORKLOAD_EXECUTION', self, context):
|
||||
start_time = datetime.utcnow()
|
||||
try:
|
||||
self.workload.run(context)
|
||||
finally:
|
||||
self.run_time = datetime.utcnow() - start_time
|
||||
|
||||
def process_output(self, context):
|
||||
if not context.tm.is_responsive:
|
||||
|
Loading…
x
Reference in New Issue
Block a user