summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-23 22:41:33 +0800
committerruki <[email protected]>2024-08-23 22:41:33 +0800
commit87c9de55373a5d4aed385162f1ec6152068c1f2f (patch)
tree03a93fd9b0be41f7dc49f12618d49d0486e3c48c /tests/run.lua
parent01d4ef480fdb495b13fcd9f4529b30e5ccd5d1c7 (diff)
improve test
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua2
1 files changed, 1 insertions, 1 deletions
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