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

workloads/hackbench: fix target_binary

Set target_binary as a class, rather than instance, attribute. This
happens only only once per run, and setting it as instance attribute the
first time, makes it unavailable for subsequent instances of the same
workload.
This commit is contained in:
Sergei Trofimov 2018-02-15 10:09:13 +00:00 committed by Marc Bonnici
parent 9efb95f4ff
commit 2158dd047e

View File

@ -62,7 +62,7 @@ class Hackbench(Workload):
@once
def initialize(self, context):
host_binary = context.resolver.get(Executable(self, self.target.abi, self.binary_name))
self.target_binary = self.target.install(host_binary)
Hackbench.target_binary = self.target.install(host_binary)
def setup(self, context):
self.target_output_file = self.target.get_workpath(hackbench_results_txt)