Skip to content

Commit 796cced

Browse files
lockerylobankov
authored andcommitted
Create luatest.log file in VARDIR
Currently, it's created in the current directory, which is annoying. Fixes commit f8a1c10 ("Add logging to unified file"). Closes #373
1 parent a978383 commit 796cced

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

luatest/runner.lua

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function Runner.run(args, options)
6161
local log_prefix = options.log_prefix or 'luatest'
6262
local log_cfg = string.format("%s.log", log_prefix)
6363

64+
fio.mktree(Server.vardir)
65+
log_cfg = fio.pathjoin(Server.vardir, log_cfg)
66+
6467
if options.log_file then
6568
-- Save the file descriptor as a global variable to use it
6669
-- in the `output_beautifier` module: this module is connected to the

0 commit comments

Comments
 (0)