Skip to content

Commit

Permalink
driver/qemudriver: Report an error if QEMU is not turned on
Browse files Browse the repository at this point in the history
Rather than provide a strange exception, complain when a strategy does
not use the QEMU driver properly, perhaps due to user settings.

Series-changes: 6
- Add new patch to report an error if QEMU is not turned on

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 committed Jan 20, 2025
1 parent d386477 commit a46870d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions labgrid/driver/qemudriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ def remove_port_forward(self, proto, local_address, local_port):
)

def _read(self, size=1, timeout=10, max_size=None):
if not self._clientsocket:
raise ExecutionError('QEMU has not been started')
ready, _, _ = select.select([self._clientsocket], [], [], timeout)
if ready:
# Collect some more data
Expand Down

0 comments on commit a46870d

Please sign in to comment.