Add diagnostics to help find out why integration tests fail.

This commit is contained in:
Vitaly Baranov 2020-02-29 14:14:36 +03:00
parent 0cebefae3e
commit 64cf6a0b2b

View File

@ -401,11 +401,11 @@ class ClickHouseCluster:
if not subprocess_call(['docker-compose', 'kill']):
subprocess_call(['docker-compose', 'down', '--volumes'])
logging.info("Unstopped containers killed")
except:
pass
logging.info("Unstopped containers killed")
try:
if destroy_dirs and p.exists(self.instances_dir):
logging.info("Removing instances dir %s", self.instances_dir)
shutil.rmtree(self.instances_dir)
@ -473,6 +473,11 @@ class ClickHouseCluster:
self.is_up = True
except BaseException, e:
print "Failed to start cluster: "
print str(e)
raise
def shutdown(self, kill=True):
sanitizer_assert_instance = None
with open(self.docker_logs_path, "w+") as f: