🚚 (layout): 书源插件统一收进 src/ 目录
测试运行器与网页验证用例的路径同步调整。 Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
0a69fe7728
commit
3ab0a25d77
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
--[[-- 起点验证码网页回归,使用已有 Node。 @module tests.moonsource_qidian.web_spec --]]
|
--[[-- 起点验证码网页回归,使用已有 Node。 @module tests.moonsource_qidian.web_spec --]]
|
||||||
local Assert = require("support.assert")
|
local Assert = require("support.assert")
|
||||||
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()
|
||||||
|
|||||||
Reference in new issue
Block a user