From 0ceb62c27507dbd95809f85b78dd4840a42e83cd Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 25 May 2024 18:22:48 +0200 Subject: [PATCH] Fix sanitizers CI test summary report (#4815) (#4840) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mario Dominguez (cherry picked from commit 7316d358c03092407728069ef18a4eacb0afe810) Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com> --- .github/workflows/utils/log_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)):