1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 22:54:18 +00: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

@@ -153,7 +153,7 @@ class Jankbench(ApkWorkload):
def extract_metrics_from_logcat(self, context):
metric_names = ['mean', 'junk_p', 'std_dev', 'count_bad', 'count_junk']
logcat_file = context.get_artifact_path('logcat')
with open(logcat_file) as fh:
with open(logcat_file, errors='replace') as fh:
run_tests = copy(self.test_ids or self.valid_test_ids)
current_iter = None
current_test = None