补充 OPFS 会话默认路径覆盖

结论:Node OPFS smoke 现在验证 INI 缺失参数文件和刀具表文件名时,会话桥接回落到 host path model 默认路径,保持文件边界策略不进入 CNC 语义。
This commit is contained in:
2026-06-08 09:31:21 +08:00
parent 4a2fc83776
commit 4de2c84a62
2 changed files with 11 additions and 1 deletions

View File

@@ -441,6 +441,14 @@ assert.equal(
loadedIniDerivedRandomSession.toolTable.result,
"tooldata_load=0\nload_tool_path=/work/ini-derived-session-tool.tbl\nrandom_toolchanger=1\n",
);
assert.equal(
loadedIniDerivedRandomSession.parameters.opfsPath,
"linuxcnc/machines/xyzab-tdr/linuxcnc.var",
);
assert.equal(
loadedIniDerivedRandomSession.toolTable.opfsPath,
"linuxcnc/machines/xyzab-tdr/tool.tbl",
);
await saveMachineTextFiles("ini-file-session", {
ini: [