mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Update tests/integration/helpers/cluster.py
Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
parent
15882b1d86
commit
bd563c210e
@ -242,10 +242,9 @@ 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)
|
||||
if name == "test.py":
|
||||
name = ""
|
||||
elif name.startswith("test_") and name.endswith(".py"):
|
||||
name = name[len("test_"):(len(name)-len(".py"))]
|
||||
name = p.splitext(name)[0]
|
||||
name = name.removeprefix('test')
|
||||
name = name.strip('-_')
|
||||
return name
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user