summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-24 23:23:16 +0800
committerruki <[email protected]>2024-07-24 23:23:16 +0800
commit1c95994f083e48dbd756749efcd5beedfdf83ba2 (patch)
tree7cf59952d0b65dc75b7d9ddc504252eef413c3d0
parent4296ef9f6184911356334b9d36961cb9699a2959 (diff)
fix log file path
-rw-r--r--xmake/actions/test/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua
index 1aa528249..f8314ce69 100644
--- a/xmake/actions/test/main.lua
+++ b/xmake/actions/test/main.lua
@@ -256,7 +256,7 @@ function _show_output(testinfo, kind)
if output then
if option.get("diagnosis") then
local target = testinfo.target
- local logfile = path.join(target:autogendir(), "tests", testinfo.name .. ".log")
+ local logfile = path.join(target:autogendir(), "tests", testinfo.name .. "." .. kind .. ".log")
io.writefile(logfile, output)
print("%s: %s", kind, logfile)
elseif option.get("verbose") then