mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +00:00
workloads/jankbench: Replace errors during decoding
When running jankbench invalid bytes can be read from the device causing decoding in the monitor to fail, now replace any invalid sequences.
This commit is contained in:
parent
0440c41266
commit
59e29de285
@ -226,7 +226,7 @@ class JankbenchRunMonitor(threading.Thread):
|
||||
if ready:
|
||||
line = ready[0].readline()
|
||||
if sys.version_info[0] == 3:
|
||||
line = line.decode(sys.stdout.encoding)
|
||||
line = line.decode(sys.stdout.encoding, 'replace')
|
||||
if self.regex.search(line):
|
||||
self.run_ended.set()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user