From 0a1f24e364a2e22e7235472dd5ef9d2f47fddc87 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Sat, 19 Oct 2024 21:51:59 +0000 Subject: [PATCH] fix --- tests/ci/libfuzzer_test_check.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/ci/libfuzzer_test_check.py b/tests/ci/libfuzzer_test_check.py index 6005a3bdc47..33b598ef0a6 100644 --- a/tests/ci/libfuzzer_test_check.py +++ b/tests/ci/libfuzzer_test_check.py @@ -185,15 +185,19 @@ def process_results(result_path: Path): file_path_unit = file_path.with_suffix(".unit") file_path_out = file_path.with_suffix(".out") status = read_status(file) + result = TestResult(fuzzer, status[0], float(status[2])) if status[0] == "OK": oks += 1 elif status[0] == "Timeout": timeouts += 1 + if file_path_out.exists(): + result.set_log_files([file_path_out]) else: fails += 1 - result = TestResult(fuzzer, status[0], float(status[2])) - if file_path_unit.exists: - result.set_raw_logs("\n".join(process_error(file_path_out))) + if file_path_out.exists(): + result.set_raw_logs("\n".join(process_error(file_path_out))) + if file_path_unit.exists: + result.set_log_files([file_path_unit]) test_results.append(result) return [oks, timeouts, fails, test_results]