Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

tools tests: the golden compare replaces only the whole engine name (#973)

Niko1221f53eb1b96a4e
diff --git a/tools/test_setup_golden.py b/tools/test_setup_golden.py
index 97e09dc6c..af0777a45 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), "<T>").replace("\\", "/").replace(setup.EXE, "<EXE>")
+ return re.sub(rf"(?<![w.-]){re.escape(setup.EXE)}(?![w.-])", "<EXE>", v.replace(str(t), "<T>").replace("\\", "/")) # #973: only the whole name, not "strata-x.log" on Linux
return v