Skip to content

Commit a6405f1

Browse files
Islam Elkanovylobankov
authored andcommitted
Fix bug when lua script name truncated by dot
Creating a lua diff test with a name containing a dot causes the name to be parsed incorrectly. Then an attempt is made to create an tarantool instance with an incorrect name, resulting in an error. This change fixes the bug. Fixes #300
1 parent 7a1ec4f commit a6405f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tarantool_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def script(self, val):
583583
delattr(self, '_script')
584584
return
585585
self._script = os.path.abspath(val)
586-
self.name = os.path.basename(self._script).split('.')[0]
586+
self.name = os.path.basename(self._script).rsplit(".", maxsplit=1)[0]
587587

588588
@property
589589
def _admin(self):

0 commit comments

Comments
 (0)