Skip to content

Commit 8ebb3aa

Browse files
Oleg Chaplashkinylobankov
Oleg Chaplashkin
authored andcommitted
Adapt use luatest with new --no-clean option
The `--no-clean` option was added after the luatest update [1]. Test-run uses luatest but independently performs the preparation (creation and cleaning of directories). Therefore this option was added to avoid incompatibility between the two tools. [1] tarantool/luatest@18859f6 Part of tarantool/luatest#308
1 parent aa3b34d commit 8ebb3aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/luatest_server.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def __init__(self, *args, **kwargs):
3434
def execute(self, server):
3535
"""Execute test by luatest command
3636
37-
Execute `luatest -c --verbose <name>_test.lua --output tap` command.
38-
Disable capture mode. Provide a verbose output in the tap format.
39-
Extend the command by `--pattern <pattern>` if the corresponding
40-
option is provided.
37+
Execute `luatest -c --no-clean --verbose <name>_test.lua --output tap`
38+
command. Disable capture mode and deletion of the var directory.
39+
Provide a verbose output in the tap format. Extend the command by
40+
`--pattern <pattern>` if the corresponding option is provided.
4141
"""
4242
server.current_test = self
4343
script = os.path.join(os.path.basename(server.testdir), self.name)
@@ -47,7 +47,7 @@ def execute(self, server):
4747
# Add luatest as the script.
4848
command.extend([server.luatest])
4949
# Add luatest command-line options.
50-
command.extend(['-c', '--verbose', script, '--output', 'tap'])
50+
command.extend(['-c', '--no-clean', '--verbose', script, '--output', 'tap'])
5151
if Options().args.pattern:
5252
for p in Options().args.pattern:
5353
command.extend(['--pattern', p])

0 commit comments

Comments
 (0)