Skip to content

Commit

Permalink
tests: Add FVP version logging
Browse files Browse the repository at this point in the history
Printing out the FVP version facilitates troubleshooting
and helps verify the results of FVP updates.

Signed-off-by: Dávid Házi <[email protected]>
  • Loading branch information
david-hazi-arm authored and aggarg committed Dec 21, 2024
1 parent 0048e5f commit eaa6639
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions release_changes/202412112209.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests: Add FVP version logging
8 changes: 8 additions & 0 deletions tools/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ def fvp_process(
cmdline.extend(frm_options)
if pythonhome_path != "":
fvp_env["PYTHONHOME"] = pythonhome_path

# Log FVP version
command = [fvp_path, "--version"]
fvp_version_proc = subprocess.run(
command, env=fvp_env, capture_output=True, text=True
)
print(fvp_version_proc.stdout)

proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE, env=fvp_env)
yield proc
proc.terminate()
Expand Down

0 comments on commit eaa6639

Please sign in to comment.