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

linpack-cli: setting run timeout based on array size

This commit is contained in:
Sergei Trofimov 2015-06-19 09:47:49 +01:00
parent a6e9525264
commit 642da319d4

View File

@ -46,7 +46,9 @@ class LinpackCliWorkload(Workload):
self.command = '(echo {}; echo q) | {}'.format(self.array_size, self.binary)
def run(self, context):
self.raw_output = self.device.execute(self.command, timeout=300, check_exit_code=False)
self.raw_output = self.device.execute(self.command,
timeout=(self.array_size / 10) ** 2,
check_exit_code=False)
def update_result(self, context):
raw_outfile = os.path.join(context.output_directory, 'linpack-raw.txt')