From 1e780f548dbf86ce1b95f44bb7bf8a704293449a Mon Sep 17 00:00:00 2001 From: "Wei-Chun, Chang" Date: Thu, 26 Sep 2024 12:24:15 +0800 Subject: [PATCH] Ignore return code from preset check Signed-off-by: Wei-Chun, Chang --- recce/run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recce/run.py b/recce/run.py index 89806315..a14c7a78 100644 --- a/recce/run.py +++ b/recce/run.py @@ -235,9 +235,9 @@ async def cli_run(output_state_file: str, **kwargs): pass else: console.rule("Preset checks") - rc, failed_checks = await execute_preset_checks(preset_checks) - if rc != 0 and failed_checks: - console.print("[[yellow]Warning[/yellow]] Some preset checks failed. Please see the failed reason.") + _, failed_checks = await execute_preset_checks(preset_checks) + if failed_checks: + console.print("[[yellow]Warning[/yellow]] Preset checks failed. Please see the failed reason.") process_failed_checks(failed_checks, error_log) else: state_checks = ctx.state_loader.state.checks @@ -248,7 +248,7 @@ async def cli_run(output_state_file: str, **kwargs): console.rule("Checks") _, failed_checks = await execute_state_checks(state_checks) if failed_checks: - console.print("[[yellow]Warning[/yellow]] Some checks failed. Please see the failed reason.") + console.print("[[yellow]Warning[/yellow]] Checks failed. Please see the failed reason.") process_failed_checks(failed_checks, error_log) from recce.event import log_load_state