diff --git a/.github/workflows/utils/log_parser.py b/.github/workflows/utils/log_parser.py index 1c9a908140e..937f71635da 100644 --- a/.github/workflows/utils/log_parser.py +++ b/.github/workflows/utils/log_parser.py @@ -75,7 +75,7 @@ def failure_test_list( # failed tests saved_lines = [] - with open(log_file_path, 'r') as file: + with open(log_file_path, 'r', encoding='utf-8', errors='replace') as file: for line in reversed(file.readlines()): saved_lines.append(line) if (re.search('.*The following tests FAILED:.*', line)):