luatest icon indicating copy to clipboard operation
luatest copied to clipboard

Test directory is polluted with `luatest.log` file

Open locker opened this issue 10 months ago • 1 comments

Change directory to tarantool/test and run any test written in luatest, for example ./test-run.py box-luatest/watcher_test.lua, then check git status:

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        ../luatest.log
        luatest.log

The luatest.log file is also created and never deleted if a test is executed without test-run, for example luatest box-luatest/watcher_test.lua:

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        luatest.log

luatest must not create files in the test directory unless explicitly asked to.

Reproduced with https://github.com/tarantool/tarantool/commit/735b0dce76ff83a748e922b292580ebf48f2e946.

locker avatar Apr 27 '24 07:04 locker

even luatest -h creates a luatest.log file this is very strange behavior

--log /dev/null doesn't work

d-enk avatar May 30 '24 15:05 d-enk