🚚 (layout): 书源插件统一收进 src/ 目录

测试运行器与网页验证用例的路径同步调整。

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-16 19:22:43 +08:00
1 parent 0174664163
commit 9e2cbb8a82
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ local Assert = require("support.assert")
local status = os.execute("command -v node >/dev/null 2>&1") local status = os.execute("command -v node >/dev/null 2>&1")
if status ~= 0 and status ~= true then Assert.skip("需要 Node 运行网页脚本回归") end if status ~= 0 and status ~= true then Assert.skip("需要 Node 运行网页脚本回归") end
local here = debug.getinfo(1, "S").source:match("^@(.+)/[^/]+$") or "." local here = debug.getinfo(1, "S").source:match("^@(.+)/[^/]+$") or "."
local root = here .. "/../.." local root = here .. "/../../src"
local pipe = assert(io.popen('node "' .. here .. '/web_spec.js" "' .. root .. '" 2>&1')) local pipe = assert(io.popen('node "' .. here .. '/web_spec.js" "' .. root .. '" 2>&1'))
local output = pipe:read("*a") local output = pipe:read("*a")
pipe:close() pipe:close()