feat: reconcile the broker before the engine (NetOrk/netork#1308) #13
@@ -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 = tmp_path / "bin"
|
||||||
bin_dir.mkdir()
|
bin_dir.mkdir()
|
||||||
fake = bin_dir / "ssh"
|
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)
|
fake.chmod(0o755)
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
["bash", str(DEPLOY), "testhost"],
|
["bash", str(DEPLOY), "testhost"],
|
||||||
|
|||||||
Reference in new issue
Block a user