1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-07 13:41:24 +00:00

pep8: minor fixes in hackbench and ebizzy

This commit is contained in:
Sergei Trofimov 2015-04-28 08:30:43 +01:00
parent dcea921907
commit 50c8c4da34
2 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@ results_txt = 'ebizzy_results.txt'
record_regex = re.compile(r'(?P<record>\d+) records/s')
result_regex = re.compile(r'(?P<metric>\D+)(?P<value>\d+.*\b)(?P<unit>\S+)')
class Ebizzy(Workload):
name = 'ebizzy'
@ -65,7 +66,6 @@ class Ebizzy(Workload):
self.command = self.command.format(self.device_binary, self.threads, self.seconds,
self.chunks, self.extra_params, self.ebizzy_results)
def run(self, context):
self.device.execute(self.command, timeout=self.run_timeout)

View File

@ -26,7 +26,8 @@ regex_map = {"total_groups": (re.compile(r'(\d+) groups'), "groups"),
"total_messages": (re.compile(r'(\d+) messages'), "messages"),
"total_bytes": (re.compile(r'(\d+) bytes'), "bytes"),
"test_time": (re.compile(r'Time: (\d+.*)'), "seconds")
}
}
class Hackbench(Workload):