1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

workloads/jankbench: Ensure logcat monitor thread is terminated

Previously the LogcatRunMonitor left the logcat process running in the
background causing issues with concurrent accesses. Now ensure the thread
terminates correctly.
This commit is contained in:
Marc Bonnici 2018-10-12 13:07:47 +01:00 committed by setrofim
parent 375a36c155
commit 7dce0fb208

View File

@ -227,6 +227,7 @@ class JankbenchRunMonitor(threading.Thread):
line = line.decode(sys.stdout.encoding, 'replace')
if self.regex.search(line):
self.run_ended.set()
proc.terminate()
def stop(self):
self.stop_event.set()