Merge pull request #69449 from ClickHouse/fix_test2

Fix test_disks_app_func
This commit is contained in:
Nikita Taranov 2024-09-11 11:07:18 +00:00 committed by GitHub
commit bdddab6a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,20 @@ def started_cluster():
main_configs=["config.xml"],
with_minio=True,
)
cluster.start()
# local disk requires its `path` directory to exist.
# the two paths below belong to `test1` and `test2` disks
node = cluster.instances["disks_app_test"]
for path in ["path1", "path2"]:
node.exec_in_container(
[
"bash",
"-c",
f"mkdir -p /var/lib/clickhouse/{path}",
]
)
yield cluster
finally: