1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

Implemeting target assistants

- Workload's update_result stage has now been broken up into two parts:
  extract_results and update_output. This is to allow the assistant to
  pull output from the target in between the two stages.
- Updated assistant implementations for Linux and Android targets from
  the exisiting code.
- Extended target descriptor code to handle assistants and their
  parameters as well.
- Updated  the target manager to actually make use of the assistants.
This commit is contained in:
Sergei Trofimov
2017-03-27 17:31:44 +01:00
parent 044aef2535
commit 0032e347fe
9 changed files with 219 additions and 246 deletions

View File

@@ -105,12 +105,13 @@ class Dhrystone(Workload):
self.target.killall('dhrystone')
raise
def update_result(self, context):
def extract_results(self, context):
outfile = os.path.join(context.output_directory, 'dhrystone.output')
with open(outfile, 'w') as wfh:
wfh.write(self.output)
context.add_artifact('dhrystone-output', outfile, 'raw', "dhrystone's stdout")
def update_output(self, context):
score_count = 0
dmips_count = 0
total_score = 0