feat: reconcile the broker before the engine (NetOrk/netork#1308) #13

Merged
christianmanivong merged 2 commits from feat/reconcile-broker into main 2026-10-20 20:40:21 +00:00
Showing only changes of commit b93a258efc - Show all commits
+6 -2
View File
@@ -29,11 +29,15 @@ exit 0
"""
def _deploy(tmp_path: Path, broker_exit: int = 0) -> tuple[subprocess.CompletedProcess[str], list[str]]:
def _deploy(
tmp_path: Path, broker_exit: int = 0
) -> tuple[subprocess.CompletedProcess[str], list[str]]:
bin_dir = tmp_path / "bin"
bin_dir.mkdir()
fake = bin_dir / "ssh"
fake.write_text(_FAKE_SSH.replace("{state}", str(tmp_path)).replace("{broker_exit}", str(broker_exit)))
fake.write_text(
_FAKE_SSH.replace("{state}", str(tmp_path)).replace("{broker_exit}", str(broker_exit))
)
fake.chmod(0o755)
result = subprocess.run(
["bash", str(DEPLOY), "testhost"],