Skip to content

Commit d32b630

Browse files
committed
test/marvell: simular host unreachable for testing boot coreos
1 parent 5bbe2bc commit d32b630

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

marvell.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def ssh_to_bmc(self, *, boot_coreos: bool = True) -> typing.Optional[host.Host]:
4242
rsh = host.RemoteHost(self.bmc.url)
4343

4444
try:
45+
if not boot_coreos:
46+
# FIXME: testing only. Drop this part.
47+
raise RuntimeError("TEST: for testing simulate host is unrechable and boot coreos")
48+
4549
rsh.ssh_connect("core", timeout="2m")
4650
except Exception as e:
4751
logger.info(f"Cannot connect to core @ {self.bmc.url}: {e}")

0 commit comments

Comments
 (0)