Skip to content

Commit

Permalink
fix log path for test
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 14, 2024
1 parent 4da4eec commit 0c42d25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xmake/actions/test/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ function _do_test_target(target, opt)
local targetfile = path.absolute(target:targetfile())
local runargs = table.wrap(opt.runargs or target:get("runargs"))
local autogendir = path.join(target:autogendir(), "tests")
local outfile = path.join(autogendir, opt.name .. ".out")
local errfile = path.join(autogendir, opt.name .. ".err")
local logname = opt.name:gsub("[/\\>=<|%*]", "_")
local outfile = path.absolute(path.join(autogendir, logname .. ".out"))
local errfile = path.absolute(path.join(autogendir, logname .. ".err"))
os.tryrm(outfile)
os.tryrm(errfile)
os.mkdir(autogendir)
Expand Down

0 comments on commit 0c42d25

Please sign in to comment.