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 committed Mar 27, 2024
1 parent e142a7d commit 7b27bc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ def deploy_test(platform):

# Launch QEMU
process = run_command_in_terminal(run_cmd)
process.wait()
if process.returncode:
print(cons.RED_TEXT +
f"Error launching QEMU (exited with code {process.returncode})" +
cons.RESET_COLOR)
sys.exit(-1)

# Initially set the end ports as the ports obtained before running QEMU
final_pts_ports = initial_pts_ports
Expand Down

0 comments on commit 7b27bc1

Please sign in to comment.