Skip to content

Commit

Permalink
Fix running tests for Tarantool Enterprise
Browse files Browse the repository at this point in the history
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 igorcoding#22
  • Loading branch information
DifferentialOrange committed Aug 9, 2022
1 parent 4387c90 commit 8a8a227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asynctnt/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def bin_version(self) -> Optional[tuple]:
proc = subprocess.Popen([self._command_to_run, '-V'],
stdout=subprocess.PIPE)
output = proc.stdout.read().decode()
version_str = output.split('\n')[0].split(' ')[1]
version_str = output.split('\n')[0].replace('Tarantool ', '').replace('Enterprise ', '')
return self._parse_version(version_str)

def command(self, cmd, print_greeting=True):
Expand Down

0 comments on commit 8a8a227

Please sign in to comment.