1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-07 03:11:53 +01:00

Merge pull request #142 from ep1cman/master

glbench updates
This commit is contained in:
setrofim 2016-04-14 16:41:26 +01:00
commit 0bfa4bff3c

View File

@ -108,7 +108,7 @@ class GlbCorp(ApkWorkload):
self.monitor = GlbRunMonitor(self.device) self.monitor = GlbRunMonitor(self.device)
self.monitor.start() self.monitor.start()
def start_activity(self): def launch_package(self):
# Unlike with most other APK workloads, we're invoking the use case # Unlike with most other APK workloads, we're invoking the use case
# directly by starting the activity with appropriate parameters on the # directly by starting the activity with appropriate parameters on the
# command line during execution, so we dont' need to start activity # command line during execution, so we dont' need to start activity
@ -188,8 +188,8 @@ class GlbCorp(ApkWorkload):
class GlbRunMonitor(threading.Thread): class GlbRunMonitor(threading.Thread):
regex = re.compile(r'I/Runner\s+\(\s*\d+\): finished:') old_regex = re.compile(r'I/Runner\s+\(\s*\d+\): finished:')
new_regex = re.compile(r'I Runner\s*:\s*finished:')
def __init__(self, device): def __init__(self, device):
super(GlbRunMonitor, self).__init__() super(GlbRunMonitor, self).__init__()
self.device = device self.device = device
@ -213,7 +213,7 @@ class GlbRunMonitor(threading.Thread):
ready, _, _ = select.select([proc.stdout, proc.stderr], [], [], 2) ready, _, _ = select.select([proc.stdout, proc.stderr], [], [], 2)
if ready: if ready:
line = ready[0].readline() line = ready[0].readline()
if self.regex.search(line): if self.new_regex.search(line) or self.old_regex.search(line):
self.run_ended.set() self.run_ended.set()
def stop(self): def stop(self):