1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-07 03:11:53 +01:00

Merge pull request #112 from ep1cman/master

dhrystone: Updated executable resolution
This commit is contained in:
setrofim 2016-03-09 14:57:49 +00:00
commit 06c232545a
3 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,7 @@
import os import os
import re import re
from wlauto import Workload, Parameter from wlauto import Workload, Parameter, Executable
from wlauto.exceptions import ConfigError from wlauto.exceptions import ConfigError
@ -67,7 +67,7 @@ class Dhrystone(Workload):
] ]
def setup(self, context): 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) self.device_exe = self.device.install(host_exe)
execution_mode = '-l {}'.format(self.mloops) if self.mloops else '-r {}'.format(self.duration) execution_mode = '-l {}'.format(self.mloops) if self.mloops else '-r {}'.format(self.duration)
if self.taskset_mask: 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.') 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 if not self.mloops and not self.duration: # pylint: disable=E0203
self.mloops = self.default_mloops self.mloops = self.default_mloops

Binary file not shown.