1
0
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:
Marc Bonnici
2020-04-02 17:33:48 +01:00
parent 2cd4bf7e31
commit dad0a28b5e
10 changed files with 11 additions and 11 deletions

View File

@@ -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: