修复 Studio 失败测试并新增合并门禁
把丢失的 box 录像放回 apps/studio/tests/data/,修掉第 3 节 3–10 号与两处过时测试桩, 注册 timing 标记并让根目录收集零错误;新增 tools/gate.ps1 与可选的 pre-push 钩子。 验证:studio 524 通过 19 跳过、shared 467 通过 18 跳过、ui_check 632 项 0 失败、gate.ps1 退出码 0。 细节见 docs/test-repair-plan.zh.md。
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Optional pre-push gate for orisys-app — not installed automatically.
|
||||
#
|
||||
# git config core.hooksPath .githooks # turn it on
|
||||
# git config --unset core.hooksPath # turn it off
|
||||
#
|
||||
# It runs the full merge gate (tools/gate.ps1: lint on the changed files, the studio
|
||||
# suite, the shared suite, ui_check.py) and blocks the push when the gate fails. The
|
||||
# gate needs Windows: it renders real Qt widgets offscreen with the project's
|
||||
# interpreter. See tools/gate.ps1 and docs/test-repair-plan.zh.md §4.
|
||||
#
|
||||
# Windows PowerShell is used rather than pwsh so the hook works on a machine that only
|
||||
# has the one PowerShell every Windows installation carries.
|
||||
set -e
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
exec powershell.exe -NoProfile -ExecutionPolicy Bypass -File tools/gate.ps1 -Task pre-push
|
||||
Reference in New Issue
Block a user