From 403895b7431dcfca80f59e42603c3b6714584d18 Mon Sep 17 00:00:00 2001 From: "Hermes (scopedvr-dev)" Date: Tue, 20 Oct 2026 10:12:14 +0000 Subject: [PATCH] =?UTF-8?q?t=5Fa7d15717:=20run=5Fsuites.py=20False-Positiv?= =?UTF-8?q?e=20gefixt=20=E2=80=94=20Fehler-Regex=20nur=20noch=20auf=20^SCR?= =?UTF-8?q?IPT=20ERROR:=20/=20^Parse=20Error:=20am=20Zeilenanfang=20(re.MU?= =?UTF-8?q?LTILINE).=20Vorher=20matchte=20die=20Phrase-Regex=20das=20eigen?= =?UTF-8?q?e=20Check-Label=20der=20Suite=20("ok:=20Parse=20Error=20wird=20?= =?UTF-8?q?erkannt=20...",=20test=5Fupdater.gd=20Zeile=2073)=20->=20SCRIPT?= =?UTF-8?q?=5FERROR=20obwohl=20ALL=20OK:=2075.=20Zusaetzlich=20\n=20zwisch?= =?UTF-8?q?en=20stdout+stderr=20(sonst=20verkleben=20die=20Streams=20und?= =?UTF-8?q?=20der=20^-Anker=20verliert=20die=20erste=20stderr-Zeile).=20Ab?= =?UTF-8?q?nahme:=20Voll-Batterie=20SUITEN=5FTOTAL=3D30=20GRUEN=3D30=20ROT?= =?UTF-8?q?=3D0,=20test=5Fupdater=20sauber=20OK.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/run_suites.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/run_suites.py b/tools/run_suites.py index 8076570..7dfd834 100644 --- a/tools/run_suites.py +++ b/tools/run_suites.py @@ -10,8 +10,13 @@ for path in suites: name = path.split("/")[-1][:-3] proc = subprocess.run([GODOT, "--headless", "--path", ".", "-s", path], capture_output=True, text=True, timeout=600) - out = proc.stdout + proc.stderr - if re.search(r"SCRIPT ERROR:|Parse Error", out): + out = proc.stdout + "\n" + proc.stderr + # Fehler-Erkennung NUR auf echte Godot-Fehlerzeilen: ^SCRIPT ERROR: am + # Zeilenanfang (Zeile 73 "ok: Parse Error wird erkannt ..." muss NICHT + # treffen — die Suite testet die False-Positive-Erkennung und druckt den + # Phrase-Text). "\n" dazwischen: stdout+stderr dürfen nicht verkleben, + # sonst verliert der ^-Anker die erste stderr-Zeile. + if re.search(r"^SCRIPT ERROR:|^Parse Error:", out, re.MULTILINE): st = "SCRIPT_ERROR" elif re.search(r"FAILURES: [1-9]|FAILED|TEST_FAIL", out): st = "FAIL"