Skip to content

Commit

Permalink
Fix dev cluster setup
Browse files Browse the repository at this point in the history
The `instance_dir` was not created.
  • Loading branch information
mkoura committed Jan 15, 2021
1 parent a1c99d5 commit 53052e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cardano_node_tests/utils/parallel_run.py
Expand Up @@ -528,10 +528,15 @@ def _reload_cluster_obj(self, state_dir: Path) -> None:

def _reuse_dev_cluster(self) -> clusterlib.ClusterLib:
"""Reuse cluster that was already started outside of test framework."""
self.cm._cluster_instance = 0
instance_num = 0
self.cm._cluster_instance = instance_num
cluster_env = devops_cluster.get_cluster_env()
state_dir = Path(cluster_env["state_dir"])

# make sure instance dir exists
instance_dir = self.cm.lock_dir / f"{CLUSTER_DIR_TEMPLATE}{instance_num}"
instance_dir.mkdir(exist_ok=True, parents=True)

cluster_obj = self.cm.cache.cluster_obj
if not cluster_obj:
cluster_obj = devops_cluster.get_cluster_obj()
Expand Down

0 comments on commit 53052e9

Please sign in to comment.