Skip to content

Commit

Permalink
Fix bug when lua script name truncated by dot
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Islam Elkanov authored and ylobankov committed Jun 16, 2023
1 parent 7a1ec4f commit a6405f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tarantool_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def script(self, val):
delattr(self, '_script')
return
self._script = os.path.abspath(val)
self.name = os.path.basename(self._script).split('.')[0]
self.name = os.path.basename(self._script).rsplit(".", maxsplit=1)[0]

@property
def _admin(self):
Expand Down

0 comments on commit a6405f1

Please sign in to comment.