Skip to content

Commit

Permalink
Create luatest.log file in VARDIR
Browse files Browse the repository at this point in the history
Currently, it's created in the current directory, which is annoying.
Fixes commit f8a1c10 ("Add logging to unified file").

Closes #373
  • Loading branch information
locker authored and ylobankov committed Aug 28, 2024
1 parent a978383 commit 796cced
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions luatest/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function Runner.run(args, options)
local log_prefix = options.log_prefix or 'luatest'
local log_cfg = string.format("%s.log", log_prefix)

fio.mktree(Server.vardir)
log_cfg = fio.pathjoin(Server.vardir, log_cfg)

if options.log_file then
-- Save the file descriptor as a global variable to use it
-- in the `output_beautifier` module: this module is connected to the
Expand Down

0 comments on commit 796cced

Please sign in to comment.