mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-20 01:30:58 +01:00
pep8: minor fixes in hackbench and ebizzy
This commit is contained in:
parent
dcea921907
commit
50c8c4da34
@ -23,6 +23,7 @@ results_txt = 'ebizzy_results.txt'
|
|||||||
record_regex = re.compile(r'(?P<record>\d+) records/s')
|
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+)')
|
result_regex = re.compile(r'(?P<metric>\D+)(?P<value>\d+.*\b)(?P<unit>\S+)')
|
||||||
|
|
||||||
|
|
||||||
class Ebizzy(Workload):
|
class Ebizzy(Workload):
|
||||||
|
|
||||||
name = 'ebizzy'
|
name = 'ebizzy'
|
||||||
@ -65,7 +66,6 @@ class Ebizzy(Workload):
|
|||||||
self.command = self.command.format(self.device_binary, self.threads, self.seconds,
|
self.command = self.command.format(self.device_binary, self.threads, self.seconds,
|
||||||
self.chunks, self.extra_params, self.ebizzy_results)
|
self.chunks, self.extra_params, self.ebizzy_results)
|
||||||
|
|
||||||
|
|
||||||
def run(self, context):
|
def run(self, context):
|
||||||
self.device.execute(self.command, timeout=self.run_timeout)
|
self.device.execute(self.command, timeout=self.run_timeout)
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ regex_map = {"total_groups": (re.compile(r'(\d+) groups'), "groups"),
|
|||||||
"test_time": (re.compile(r'Time: (\d+.*)'), "seconds")
|
"test_time": (re.compile(r'Time: (\d+.*)'), "seconds")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class Hackbench(Workload):
|
class Hackbench(Workload):
|
||||||
|
|
||||||
name = 'hackbench'
|
name = 'hackbench'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user