1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

dhrystone: Updated executable resolution

Previously it was just using the binary in the dhrystone folder.
Now it uses WA's resource resolution to use the correct ABI.
This commit is contained in:
Sebastian Goscik 2016-03-09 14:27:31 +00:00
parent 20cd6a9c18
commit 11184750ec
3 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,7 @@
import os
import re
from wlauto import Workload, Parameter
from wlauto import Workload, Parameter, Executable
from wlauto.exceptions import ConfigError
@ -67,7 +67,7 @@ class Dhrystone(Workload):
]
def setup(self, context):
host_exe = os.path.join(this_dir, 'dhrystone')
host_exe = context.resolver.get(Executable(self, self.device.abi, 'dhrystone'))
self.device_exe = self.device.install(host_exe)
execution_mode = '-l {}'.format(self.mloops) if self.mloops else '-r {}'.format(self.duration)
if self.taskset_mask:
@ -127,4 +127,3 @@ class Dhrystone(Workload):
raise ConfigError('mloops and duration cannot be both specified at the same time for dhrystone.')
if not self.mloops and not self.duration: # pylint: disable=E0203
self.mloops = self.default_mloops

Binary file not shown.