diff --git a/tests/shuqi/web_spec.lua b/tests/shuqi/web_spec.lua index 2e32502..a7217bf 100644 --- a/tests/shuqi/web_spec.lua +++ b/tests/shuqi/web_spec.lua @@ -6,7 +6,7 @@ local Assert = require("support.assert") local status = os.execute("command -v node >/dev/null 2>&1") if status ~= 0 and status ~= true then Assert.skip("需要 Node 运行网页脚本回归") end 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 output = pipe:read("*a") pipe:close()