From 0027f74a56b2793697c29adab42dc58fb36d6ba8 Mon Sep 17 00:00:00 2001 From: Ange-Marie MAURIN Date: Tue, 20 Oct 2026 20:47:34 +0200 Subject: [PATCH] =?UTF-8?q?Tests=20:=20code=20de=20retour=201=20en=20cas?= =?UTF-8?q?=20d'=C3=A9chec=20(convention=20a2m,=20lanc=C3=A9s=20avant=20ch?= =?UTF-8?q?aque=20release)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- tests/run_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index 17337fd..c0ced42 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -4,7 +4,8 @@ - rapide (~40 s) : sphère trouée et bruitée → nom / numérotation / collection / Regenerate, Envelope fermée, Wrap + Freeze (réparation), Despike (global, filtré, refus groupe absent, Protect Detail), Analyze. - --head : chaîne complète sur la tête brute Pixal3D (11,8 M faces, ~2 min) + rendus de contrôle. -Termine par « RESULTAT : TOUT OK » ou la liste des échecs. +Termine par « RESULTAT : TOUT OK » ou la liste des échecs ; code de retour 0 si tout est bon, 1 sinon +(convention de la chaîne a2m : `tests/run_tests.py`, lancé avant chaque release). """ import importlib import math @@ -236,3 +237,4 @@ if "--head" in ARGS and os.path.isfile(HEAD): mod.unregister() print("RESULTAT :", "TOUT OK" if not fails else "ECHECS " + ", ".join(fails)) +sys.exit(1 if fails else 0) # code de retour lu par « a2m validate --tests » et « a2m release »