mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-29 22:24:51 +00:00
BaseLinuxDevice: Tidied up the way binaries are handled
Added:
get_binary_path: Checks binary_directory for the wanted binary, if
if its not there, it will use which to find a
system one. returns the full path
install_if_needed: will install a binary only if it is not present.
Changes:
- Busybox is now deployed to non-rooted devices
- is_installed has now been removed as the new functions supersede it
- binaries will now always be installed to `binaries_directory` and
not system folders.
- updated workloads to use these new functions
- rt-app and sysbench might still need work
This commit is contained in:
@@ -57,11 +57,8 @@ class Ebizzy(Workload):
|
||||
self.run_timeout = self.seconds + timeout_buf
|
||||
|
||||
self.binary_name = 'ebizzy'
|
||||
if not self.device.is_installed(self.binary_name):
|
||||
host_binary = context.resolver.get(Executable(self, self.device.abi, self.binary_name))
|
||||
self.device_binary = self.device.install(host_binary)
|
||||
else:
|
||||
self.device_binary = self.binary_name
|
||||
host_binary = context.resolver.get(Executable(self, self.device.abi, self.binary_name))
|
||||
self.device_binary = self.device.install_if_needed(host_binary)
|
||||
|
||||
self.command = self.command.format(self.device_binary, self.threads, self.seconds,
|
||||
self.chunks, self.extra_params, self.ebizzy_results)
|
||||
|
||||
Reference in New Issue
Block a user