test: update smoke and regression suites for dual-renderer paths

Offscreen harnesses now resize+show before load, use per-instance webengine profile dirs and explicit exit codes; compaction and bash stream suites follow the renamed internals.
This commit is contained in:
2026-09-17 16:40:06 +08:00
parent 0a62877cde
commit acbf73f2c3
10 changed files with 916 additions and 213 deletions
+5
View File
@@ -17,6 +17,11 @@ import tempfile as _tf # noqa: E402
import core.db_manager as _dbm # noqa: E402
_dbm._DEFAULT_DB = os.path.join(_tf.gettempdir(), f"haocode_test_smoke_offscreen_{os.getpid()}.db")
# P1-03QtWebEngine 独立 profile 重定向到临时目录(不占项目 data/webengine/
os.environ.setdefault(
"HAOCODE_WEBENGINE_PROFILE_DIR",
os.path.join(_tf.gettempdir(), f"haocode_test_smoke_offscreen_{os.getpid()}_profile"))
import ctypes # noqa: E402
from PyQt6.QtWidgets import QApplication # noqa: E402