From 642da319d4ba16ed65c6a37f437f5b0c1f5f6c7f Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 19 Jun 2015 09:47:49 +0100 Subject: [PATCH] linpack-cli: setting run timeout based on array size --- wlauto/workloads/linpack_cli/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wlauto/workloads/linpack_cli/__init__.py b/wlauto/workloads/linpack_cli/__init__.py index bddd29c1..e11b41fa 100644 --- a/wlauto/workloads/linpack_cli/__init__.py +++ b/wlauto/workloads/linpack_cli/__init__.py @@ -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')