From 0c04f4d00896683a203a7ccc17be7058c50d75fb Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 14 Sep 2020 10:01:20 +0300 Subject: [PATCH] Update cluster.py --- tests/integration/helpers/cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/helpers/cluster.py b/tests/integration/helpers/cluster.py index a8704ee42b1..4d336838eb7 100644 --- a/tests/integration/helpers/cluster.py +++ b/tests/integration/helpers/cluster.py @@ -1165,11 +1165,12 @@ class ClickHouseInstance: db_dir = p.abspath(p.join(self.path, 'database')) print "Setup database dir {}".format(db_dir) - os.mkdir(db_dir) if self.clickhouse_path_dir is not None: print "Database files taken from {}".format(self.clickhouse_path_dir) shutil.copytree(self.clickhouse_path_dir, db_dir) print "Database copied from {} to {}".format(self.clickhouse_path_dir, db_dir) + else: + os.mkdir(db_dir) logs_dir = p.abspath(p.join(self.path, 'logs')) print "Setup logs dir {}".format(logs_dir)