test(tools): 默认数据/报告路径同时支持在仓库根目录运行
问题:`OffscreenChecks` 的默认 `-data` 只探测 `../TestData/...`,默认 `-report` 也固定写 `../Temp/tools/...`;在**仓库根目录**运行时会静默报 "no data file"(退出码 2),容易被误认为工具坏了(本轮实际踩到)。 改动: * 默认数据文件候选同时包含 `../TestData/X` 与 `TestData/X`; * 报告打不开时,若路径以 `../Temp/` 开头则去掉前缀重试一次; * `Tools/README.md` 补充说明两种调用方式等价,显式 `-data/-out/-report` 仍以当前工作目录为准。 验证:在仓库根目录执行 `Tools\OffscreenChecks\Build\OffscreenChecks.exe -all` → 6/6 检查 PASS,`checks=108 failed=0`;在 `Tools/` 下行为不变。
This commit is contained in:
1 parent
b58b427f62
commit
35b67b216e
2 files changed
+23
-3
No files matched your search
@@ -157,6 +157,14 @@ Tools\OffscreenChecks\Build\OffscreenChecks.exe -list
|
||||
`SCATTER_TEST.csv` → `[1].CSV` → `BIG_DATA.csv` → `Problem_Data.CSV`;
|
||||
`TestData/` 不入库,缺失时请用 `-data` 指定。
|
||||
|
||||
> 默认路径(数据 / 输出 / 报告)**同时支持在 `Tools/` 下运行和在仓库根目录运行**
|
||||
> (两种写法会自动回退),因此下面两种调用等价:
|
||||
> ```powershell
|
||||
> cd Tools ; .\OffscreenChecks\Build\OffscreenChecks.exe -all
|
||||
> .\Tools\OffscreenChecks\Build\OffscreenChecks.exe -all
|
||||
> ```
|
||||
> 显式 `-data` / `-out` / `-report` 仍以**当前工作目录**为准。
|
||||
|
||||
### 4.1 检查项
|
||||
|
||||
| 检查 | 做了什么 | 断言 / 判据 |
|
||||
|
||||
Reference in new issue
Block a user