From 06c99de7eb687b471345c552adda6ab554c9f7de Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 27 Jan 2026 04:39:57 +0900 Subject: [PATCH] cli/validate: fail on errors --- src/cli/validate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli/validate.py b/src/cli/validate.py index f4ff8b0..69e5272 100644 --- a/src/cli/validate.py +++ b/src/cli/validate.py @@ -3,15 +3,20 @@ from lib_marker import Point, Track def main() -> None: + result_is_ok = True for test_name, test_f in _tests.items(): results = test_f() if len(results) > 0: + result_is_ok = False print(f"[X] {test_name}") for result in results: print(f" {result}") else: print(f"[✓] {test_name}") + if not result_is_ok: + exit(1) + def validate_no_non_included_files() -> list: # TODO: Implement this function