Skip to content

Commit 108c6f9

Browse files
Fix running tests for Tarantool Enterprise
Stream tests use `tarantool -V` output to check version. For Tarantool Enterprise, `tarantool -V` output is "Tarantool Enterprise <version>", thus it is incorrect to extract the version tag by splitting by spaces. Part of #22
1 parent c6eebc9 commit 108c6f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

asynctnt/instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def bin_version(self) -> Optional[tuple]:
589589
proc = subprocess.Popen([self._command_to_run, '-V'],
590590
stdout=subprocess.PIPE)
591591
output = proc.stdout.read().decode()
592-
version_str = output.split('\n')[0].split(' ')[1]
592+
version_str = output.split('\n')[0].replace('Tarantool ', '').replace('Enterprise ', '')
593593
return self._parse_version(version_str)
594594

595595
def command(self, cmd, print_greeting=True):

0 commit comments

Comments
 (0)