From 87c9de55373a5d4aed385162f1ec6152068c1f2f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 23 Aug 2024 22:41:33 +0800 Subject: improve test --- tests/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.lua b/tests/run.lua index ff6158ab2..a252b445c 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -11,7 +11,7 @@ if option.get("diagnosis") then table.insert(params, "-D") end function _run_test(script) assert(script:endswith("test.lua")) - os.execv("xmake", table.join("lua", params, path.join(os.scriptdir(), "runner.lua"), script)) + os.execv(os.programfile(), table.join("lua", params, path.join(os.scriptdir(), "runner.lua"), script)) end -- run test with the given name -- cgit v1.3.1