Skip to content

Commit 6459b97

Browse files
committed
Merge branch 'dont-litter-workdir' into 'master'
Don't litter workdir when running tests See merge request picodata/brod/tarantool-module!42
2 parents e77a6cb + 44214ad commit 6459b97

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/run_tests.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#!/usr/bin/env tarantool
22

3-
fiber = require('fiber')
3+
local fio = require('fio')
4+
local fiber = require('fiber')
5+
6+
local tmpdir = fio.tempdir()
47

58
box.cfg{
69
listen = 3301,
10+
wal_mode = 'none',
11+
memtx_dir = tmpdir,
712
}
813

14+
fio.rmtree(tmpdir)
15+
916
-- Init test database
1017
box.once('bootstrap_tests', function()
1118
box.schema.user.create('test_user', { password = 'password' })

0 commit comments

Comments
 (0)