mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +00:00
sysbench: Fixed binary installation
This commit is contained in:
parent
2d1f0e99b9
commit
dc22856431
@ -136,9 +136,9 @@ class Sysbench(Workload):
|
|||||||
if not self.on_device_binary and not self.on_host_binary:
|
if not self.on_device_binary and not self.on_host_binary:
|
||||||
raise WorkloadError('sysbench binary is not installed on the device, and it is not found on the host.')
|
raise WorkloadError('sysbench binary is not installed on the device, and it is not found on the host.')
|
||||||
if self.force_install:
|
if self.force_install:
|
||||||
self.device.install(self.on_host_binary)
|
self.on_device_binary = self.device.install(self.on_host_binary)
|
||||||
else:
|
else:
|
||||||
self.device.install_if_needed(self.on_host_binary)
|
self.on_device_binary = self.device.install_if_needed(self.on_host_binary)
|
||||||
|
|
||||||
def _build_command(self, **parameters):
|
def _build_command(self, **parameters):
|
||||||
param_strings = ['--{}={}'.format(k.replace('_', '-'), v)
|
param_strings = ['--{}={}'.format(k.replace('_', '-'), v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user