mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 12:58:36 +00:00
commands/process: write result in the end
Running additional processors will generate new metrics and artifacts. Update the serialized metadata with the new artifacts/metrics after running all processors.
This commit is contained in:
parent
8a219d0e5a
commit
ed1553816b
@ -22,6 +22,7 @@ from wa.framework.output import RunOutput
|
|||||||
from wa.framework.output_processor import ProcessorManager
|
from wa.framework.output_processor import ProcessorManager
|
||||||
from wa.utils import log
|
from wa.utils import log
|
||||||
|
|
||||||
|
|
||||||
class ProcessContext(object):
|
class ProcessContext(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -29,6 +30,7 @@ class ProcessContext(object):
|
|||||||
self.target_info = None
|
self.target_info = None
|
||||||
self.job_output = None
|
self.job_output = None
|
||||||
|
|
||||||
|
|
||||||
class ProcessCommand(Command):
|
class ProcessCommand(Command):
|
||||||
|
|
||||||
name = 'process'
|
name = 'process'
|
||||||
@ -134,4 +136,5 @@ class ProcessCommand(Command):
|
|||||||
pm.export_run_output(pc)
|
pm.export_run_output(pc)
|
||||||
pm.finalize()
|
pm.finalize()
|
||||||
|
|
||||||
|
run_output.write_result()
|
||||||
self.logger.info('Done.')
|
self.logger.info('Done.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user