From f53eb1b96a4ede0e3d1dfd3371bc3326de921840 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 5 Oct 2026 22:05:30 +0200 Subject: [PATCH] tools tests: the golden compare replaces only the whole engine name (#973) On Linux the engine is called strata, which also rewrote strata-.log and made every Enter-for-every-question case differ from the baseline. --- tools/test_setup_golden.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test_setup_golden.py b/tools/test_setup_golden.py index 97e09dc6..af0777a4 100644 --- a/tools/test_setup_golden.py +++ b/tools/test_setup_golden.py @@ -11,6 +11,7 @@ from __future__ import annotations import contextlib import io import json +import re import sys import tempfile import types @@ -55,7 +56,7 @@ def normalize(v, t: Path): if isinstance(v, list): return [normalize(x, t) for x in v] if isinstance(v, str): - return v.replace(str(t), "").replace("\\", "/").replace(setup.EXE, "") + return re.sub(rf"(?", v.replace(str(t), "").replace("\\", "/")) # #973: only the whole name, not "strata-x.log" on Linux return v