mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-17 13:56:06 +01: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:
@ -227,6 +227,7 @@ class JankbenchRunMonitor(threading.Thread):
|
|||||||
line = line.decode(sys.stdout.encoding, 'replace')
|
line = line.decode(sys.stdout.encoding, 'replace')
|
||||||
if self.regex.search(line):
|
if self.regex.search(line):
|
||||||
self.run_ended.set()
|
self.run_ended.set()
|
||||||
|
proc.terminate()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.stop_event.set()
|
self.stop_event.set()
|
||||||
|
Reference in New Issue
Block a user