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

hwuitest: invoke executable via full path

Previously, the workload was invoking the executable via its name,
assuming that it will be in PATH. As WA's executables directory is not
in path, the invocation was failing. This commit saves the full path to
the installed executable and uses that instead.
This commit is contained in:
Sergei Trofimov 2016-06-17 08:00:50 +01:00
parent be7aa3d379
commit 8660d0f488

View File

@ -55,10 +55,10 @@ class HWUITest(Workload):
host_exe = context.resolver.get(Executable(self,
self.device.abi,
BINARY))
self.device.install(host_exe)
self.target_exe = self.device.install(host_exe)
def run(self, context):
self.output = self.device.execute("{} {} {} {}".format(BINARY,
self.output = self.device.execute("{} {} {} {}".format(self.target_exe,
self.test.lower(),
self.loops,
self.frames))