From 8a8a227f400185c1671360033314d295c12934b2 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Tue, 9 Aug 2022 15:47:51 +0300 Subject: [PATCH] Fix running tests for Tarantool Enterprise Stream tests use `tarantool -V` output to check version. For Tarantool Enterprise, `tarantool -V` output is "Tarantool Enterprise ", thus it is incorrect to extract the version tag by splitting by spaces. Part of #22 --- asynctnt/instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asynctnt/instance.py b/asynctnt/instance.py index 38f2bbc..b4c5235 100644 --- a/asynctnt/instance.py +++ b/asynctnt/instance.py @@ -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):