1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

sysbench: use device busybox binary

Use the full path to busybox on the target device as opposed to
assuming it is found on the path.
This commit is contained in:
Sascha Bischoff 2016-03-24 16:21:01 +00:00
parent 499a9f4082
commit 2eca77fb02

View File

@ -147,7 +147,7 @@ class Sysbench(Workload):
param_strings.append('--file-test-mode={}'.format(self.file_test_mode))
sysbench_command = '{} {} {} run'.format(self.on_device_binary, ' '.join(param_strings), self.cmd_params)
if self.taskset_mask:
taskset_string = 'busybox taskset 0x{:x} '.format(self.taskset_mask)
taskset_string = '{} taskset 0x{:x} '.format(self.device.busybox, self.taskset_mask)
else:
taskset_string = ''
return 'cd {} && {} {} > sysbench_result.txt'.format(self.device.working_directory, taskset_string, sysbench_command)