Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lisa/microsoft/testsuites/core/provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,12 @@ def _smoke_test(
saved_path=log_path, stage="reboot", force_run=True
)

# if node cannot be connected after reboot, it should be failed.
if isinstance(e, TcpConnectionException):
raise BadEnvironmentStateException(f"after reboot, {e}")
raise PassedException(e)
# any reboot error should fail and mark the environment as bad.
raise BadEnvironmentStateException(
f"reboot failed on node '{node.name}': {e}. "
f"Check serial console logs under '{log_path}' and verify the node is "
"reachable."
) from e
return timer.elapsed()

def is_mana_device_discovered(self, node: RemoteNode) -> bool:
Expand Down
Loading