Skip to content

Commit

Permalink
feat(framework): add qemu launch failure logging
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa authored and miguelafsilva5 committed May 23, 2024
1 parent e5d264f commit aebeab8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ def deploy_test(platform):
# from the initial ports; this retrieves the pts ports opened by QEMU
while final_pts_ports == initial_pts_ports:
final_pts_ports = connection.scan_pts_ports()
if process.poll():
print(cons.RED_TEXT +
f"Error launching QEMU (exited with code {process.returncode})" +
cons.RESET_COLOR)
sys.exit(-1)

# Find the difference between the initial and final pts ports
diff_ports = connection.diff_ports(initial_pts_ports, final_pts_ports)
Expand Down

0 comments on commit aebeab8

Please sign in to comment.