mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01:00
logcat_parsing: Replace errors when decoding logcat output
Some devices print non standard characters to logcat. If an error occurs when parsing the output, replace the offending character instead of raising an error.
This commit is contained in:
@@ -145,7 +145,7 @@ class Vellamo(ApkUiautoWorkload):
|
||||
def non_root_update_output(self, context):
|
||||
failed = []
|
||||
logcat_file = context.get_artifact_path('logcat')
|
||||
with open(logcat_file) as fh:
|
||||
with open(logcat_file, errors='replace') as fh:
|
||||
iteration_result_regex = re.compile("VELLAMO RESULT: (Browser|Metal|Multicore) (\d+)")
|
||||
for line in fh:
|
||||
if 'VELLAMO ERROR:' in line:
|
||||
|
Reference in New Issue
Block a user