mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-30 14:44:09 +00:00
Updated dhrystone to use the new resource resoultion mechanics.
This commit is contained in:
@@ -18,10 +18,7 @@
|
||||
import os
|
||||
import re
|
||||
|
||||
from wa import Workload, Parameter, ConfigError
|
||||
|
||||
|
||||
this_dir = os.path.dirname(__file__)
|
||||
from wa import Workload, Parameter, ConfigError, Executable
|
||||
|
||||
|
||||
class Dhrystone(Workload):
|
||||
@@ -75,7 +72,8 @@ class Dhrystone(Workload):
|
||||
]
|
||||
|
||||
def initialize(self, context):
|
||||
host_exe = os.path.join(this_dir, 'dhrystone')
|
||||
resource = Executable(self, self.target.abi, 'dhrystone')
|
||||
host_exe = context.resolver.get(resource)
|
||||
Dhrystone.target_exe = self.target.install(host_exe)
|
||||
|
||||
def setup(self, context):
|
||||
|
||||
Reference in New Issue
Block a user