mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Update tests/integration/helpers/cluster.py
This commit is contained in:
parent
e67a447fc3
commit
225a5c3c7e
@ -242,9 +242,10 @@ def extract_test_name(base_path):
|
||||
Must be unique in each test directory (because it's used to make instances dir and to stop docker containers from previous run)
|
||||
"""
|
||||
name = p.basename(base_path)
|
||||
name = p.splitext(name)[0]
|
||||
name = name.removeprefix("test")
|
||||
name = name.strip("-_")
|
||||
if name == "test.py":
|
||||
name = ""
|
||||
elif name.startswith("test_") and name.endswith(".py"):
|
||||
name = name[len("test_"):(len(name)-len(".py"))]
|
||||
return name
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user